diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-07 12:01:26 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-07 12:02:41 (GMT) |
commit | f37b4ab8c8116abc2f71128e308b938c90ec5b8a (patch) | |
tree | 0953911320c8d52603f43bf2948792a9aeee8852 /src/gui/widgets/qdockarealayout.cpp | |
parent | 3c2b9047be4f4f835e59c13d5038b907c629451f (diff) | |
download | Qt-f37b4ab8c8116abc2f71128e308b938c90ec5b8a.zip Qt-f37b4ab8c8116abc2f71128e308b938c90ec5b8a.tar.gz Qt-f37b4ab8c8116abc2f71128e308b938c90ec5b8a.tar.bz2 |
QDockWidget: Make visibilityChanged more accurate
Task-number: 258459
Diffstat (limited to 'src/gui/widgets/qdockarealayout.cpp')
-rw-r--r-- | src/gui/widgets/qdockarealayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qdockarealayout.cpp b/src/gui/widgets/qdockarealayout.cpp index ee29b55..cad6903 100644 --- a/src/gui/widgets/qdockarealayout.cpp +++ b/src/gui/widgets/qdockarealayout.cpp @@ -1545,7 +1545,7 @@ void QDockAreaLayoutInfo::apply(bool animate) QRect geo = w->geometry(); widgetAnimator.animate(w, r, animate); - if (!w->isHidden()) { + if (!w->isHidden() && w->window()->isVisible()) { QDockWidget *dw = qobject_cast<QDockWidget*>(w); if (!r.isValid() && geo.right() >= 0 && geo.bottom() >= 0) { dw->lower(); |