summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qtoolbar.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2014-12-05 09:06:33 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2014-12-08 09:47:31 +0100
commitaca0fb17862875209a234f0384b981efe831f4b6 (patch)
tree10b75ea0006872c5dba4eb37944fd1048334ec6c /src/widgets/widgets/qtoolbar.cpp
parent8ee7aa78afd3d3dee6e333953d51aa72cb227441 (diff)
Update window flags from QToolBarPrivate::endDrag().
Activate previously #ifdef'ed code which cleared the Qt::X11BypassWindowManager hint. With the hint set, the tool bar stays on top and does not get deactivated along with the application by the WM. Task-number: QTBUG-41189 Change-Id: I6f3f334860e46dd4867f5942f15e5a090340f2d7 Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Diffstat (limited to 'src/widgets/widgets/qtoolbar.cpp')
-rw-r--r--src/widgets/widgets/qtoolbar.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/widgets/widgets/qtoolbar.cpp b/src/widgets/widgets/qtoolbar.cpp
index 17e64be4f4..77119a0d7d 100644
--- a/src/widgets/widgets/qtoolbar.cpp
+++ b/src/widgets/widgets/qtoolbar.cpp
@@ -220,10 +220,8 @@ void QToolBarPrivate::endDrag()
if (!layout->plug(state->widgetItem)) {
if (q->isFloatable()) {
layout->restore();
-#if defined(Q_WS_X11) || defined(Q_WS_MAC)
setWindowState(true); // gets rid of the X11BypassWindowManager window flag
// and activates the resizer
-#endif
q->activateWindow();
} else {
layout->revert(state->widgetItem);