1From c6a87fff57effdfcf947af2298043056640243f6 Mon Sep 17 00:00:00 2001
2From: Dmitry Kazakov <dimula73@gmail.com>
3Date: Thu, 6 Dec 2018 16:16:27 +0300
4Subject: [PATCH 16/22] Fix notification of QDockWidget when it gets undocked
5
6Before the patch the notification was emitted only when the docker
7was attached to the panel or changed a position on it.
8
9Change-Id: Id3ffbd2018a8e68844d174328dd1c4ceb7fa01d3
10---
11 src/widgets/widgets/qdockwidget.cpp | 2 ++
12 1 file changed, 2 insertions(+)
13
14diff --git a/src/widgets/widgets/qdockwidget.cpp b/src/widgets/widgets/qdockwidget.cpp
15index 6c871aae2c..19fc2d1677 100644
16--- a/src/widgets/widgets/qdockwidget.cpp
17+++ b/src/widgets/widgets/qdockwidget.cpp
18@@ -1171,6 +1171,8 @@ void QDockWidgetPrivate::setWindowState(bool floating, bool unplug, const QRect
19             QMainWindowLayout *mwlayout = qt_mainwindow_layout_from_dock(q);
20             if (mwlayout)
21                 emit q->dockLocationChanged(mwlayout->dockWidgetArea(q));
22+        } else {
23+            emit q->dockLocationChanged(Qt::NoDockWidgetArea);
24         }
25     }
26
27--
282.20.1.windows.1
29
30