diff options
author | Sergio Martins <sergio.martins@kdab.com> | 2018-04-10 18:30:15 +0100 |
---|---|---|
committer | Sérgio Martins <sergio.martins@kdab.com> | 2018-04-11 19:16:16 +0000 |
commit | a553e2f6b520525608412668a91b26ce68ca57cb (patch) | |
tree | 29427d3dfbcfeb17cd13281bdc289f172a13a2a6 /src/widgets/widgets/qmainwindowlayout.cpp | |
parent | 297957c4d5e41f01886bf44f72d8df58d9ed0de9 (diff) |
Fix z-order when dragging a dock widget over another
the drop target would create a floating group window, which would
have higher z-order since it just had show() called on it.
raise the window we're dragging when the target is mutated into group
window.
Bug can be seen on the .gif attached to QTBUG-67611.
Change-Id: I5dad058468e24327b14d1e7f76c3ad0287d26ee8
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/widgets/qmainwindowlayout.cpp')
-rw-r--r-- | src/widgets/widgets/qmainwindowlayout.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/widgets/qmainwindowlayout.cpp b/src/widgets/widgets/qmainwindowlayout.cpp index 9cf2e7de1f..2e773a5790 100644 --- a/src/widgets/widgets/qmainwindowlayout.cpp +++ b/src/widgets/widgets/qmainwindowlayout.cpp @@ -2559,6 +2559,7 @@ void QMainWindowLayout::hover(QLayoutItem *widgetItem, const QPoint &mousePos) dropTo->show(); dropTo->d_func()->plug(QRect()); w = floatingTabs; + widget->raise(); // raise, as our newly created drop target is now on top } Q_ASSERT(qobject_cast<QDockWidgetGroupWindow *>(w)); auto group = static_cast<QDockWidgetGroupWindow *>(w); |