summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qmainwindowlayout.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-05 11:17:39 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-05 11:23:23 (GMT)
commitb4f1f4de1a0df7028440faaff146ac1560dc6169 (patch)
tree7a8c58325557295476fa831a4eede470def88e29 /src/gui/widgets/qmainwindowlayout.cpp
parent0ba2e3c4fa088a5467279cf851b2b49697ccad5c (diff)
downloadQt-b4f1f4de1a0df7028440faaff146ac1560dc6169.zip
Qt-b4f1f4de1a0df7028440faaff146ac1560dc6169.tar.gz
Qt-b4f1f4de1a0df7028440faaff146ac1560dc6169.tar.bz2
MainWindow: fixed an update issue when moving a separator
A non painted (ie. garbage) area could appear if you had a fixed size dock widget and you moved the separator. The previous place where the separator was painted was not updated
Diffstat (limited to 'src/gui/widgets/qmainwindowlayout.cpp')
-rw-r--r--src/gui/widgets/qmainwindowlayout.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qmainwindowlayout.cpp b/src/gui/widgets/qmainwindowlayout.cpp
index 3936a67..55afa70 100644
--- a/src/gui/widgets/qmainwindowlayout.cpp
+++ b/src/gui/widgets/qmainwindowlayout.cpp
@@ -1988,6 +1988,9 @@ void QMainWindowLayout::timerEvent(QTimerEvent *e)
if (movingSeparatorOrigin == movingSeparatorPos)
return;
+ //when moving the separator, we need to update the previous position
+ parentWidget()->update(layoutState.dockAreaLayout.separatorRegion());
+
layoutState = savedState;
layoutState.dockAreaLayout.separatorMove(movingSeparator, movingSeparatorOrigin,
movingSeparatorPos);