diff options
author | Sergio Martins <sergio.martins@kdab.com> | 2016-11-29 18:58:55 +0000 |
---|---|---|
committer | Sérgio Martins <sergio.martins@kdab.com> | 2016-12-15 15:37:00 +0000 |
commit | 7797c13131574f369e09970834f96d67e11a5e1d (patch) | |
tree | 0f3d7033b6c81f3e3ffb58c3a6d88aa72bbe4e6f /src/widgets/widgets/qmainwindowlayout_p.h | |
parent | f9b1ec2d797b9a44dc983cddc15b5f00a0094cd1 (diff) |
QDockWidgetGroupWindow now honors custom title bar
When you change tab it will loose or gain native window decos
depending on if the current dock widget has them or not.
Change-Id: I1171f43fa5ee897ce7d695fc447255dcb0d1d5a1
Task-Id: QTBUG-56866
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/widgets/qmainwindowlayout_p.h')
-rw-r--r-- | src/widgets/widgets/qmainwindowlayout_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/widgets/qmainwindowlayout_p.h b/src/widgets/widgets/qmainwindowlayout_p.h index 6e8b965431..40336caeba 100644 --- a/src/widgets/widgets/qmainwindowlayout_p.h +++ b/src/widgets/widgets/qmainwindowlayout_p.h @@ -83,9 +83,14 @@ public: QDockWidget *topDockWidget() const; void destroyOrHideIfEmpty(); void adjustFlags(); + bool hasNativeDecos() const; + protected: bool event(QEvent *) Q_DECL_OVERRIDE; void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE; + +private: + QSize m_removedFrameSize; }; // This item will be used in the layout for the gap item. We cannot use QWidgetItem directly |