diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-05 11:17:39 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-05 11:23:23 (GMT) |
commit | b4f1f4de1a0df7028440faaff146ac1560dc6169 (patch) | |
tree | 7a8c58325557295476fa831a4eede470def88e29 /src/gui/widgets/qmainwindowlayout.cpp | |
parent | 0ba2e3c4fa088a5467279cf851b2b49697ccad5c (diff) | |
download | Qt-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.cpp | 3 |
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); |