diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-21 13:26:33 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-21 13:26:33 (GMT) |
commit | ef93943579210dffaa83185cea99146fa9f3f9b6 (patch) | |
tree | ca1a4bf586a54dedd6d8e85d086a8f7cd8c3dbcd /src/gui/kernel/qwidget_win.cpp | |
parent | 00ba962d428dcdff70fcde74a9e5cb316545cef6 (diff) | |
parent | 1b305c739979f7d0e8cb6ebbac6d29ca2e6b060d (diff) | |
download | Qt-ef93943579210dffaa83185cea99146fa9f3f9b6.zip Qt-ef93943579210dffaa83185cea99146fa9f3f9b6.tar.gz Qt-ef93943579210dffaa83185cea99146fa9f3f9b6.tar.bz2 |
Merge commit 'qt-kinetic/kinetic-graphicseffect'
Diffstat (limited to 'src/gui/kernel/qwidget_win.cpp')
-rw-r--r-- | src/gui/kernel/qwidget_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget_win.cpp b/src/gui/kernel/qwidget_win.cpp index ef0fe6a..b55f5a6 100644 --- a/src/gui/kernel/qwidget_win.cpp +++ b/src/gui/kernel/qwidget_win.cpp @@ -535,7 +535,7 @@ void QWidget::destroy(bool destroyWindow, bool destroySubWindows) { Q_D(QWidget); if (!isWindow() && parentWidget()) - parentWidget()->d_func()->invalidateBuffer(geometry()); + parentWidget()->d_func()->invalidateBuffer(d->effectiveRectFor(geometry())); d->deactivateWidgetCleanup(); if (testAttribute(Qt::WA_WState_Created)) { setAttribute(Qt::WA_WState_Created, false); @@ -597,7 +597,7 @@ void QWidgetPrivate::setParent_sys(QWidget *parent, Qt::WindowFlags f) Q_Q(QWidget); bool wasCreated = q->testAttribute(Qt::WA_WState_Created); if (q->isVisible() && q->parentWidget() && parent != q->parentWidget()) - q->parentWidget()->d_func()->invalidateBuffer(q->geometry()); + q->parentWidget()->d_func()->invalidateBuffer(effectiveRectFor(q->geometry())); WId old_winid = data.winid; // hide and reparent our own window away. Otherwise we might get |