From 1fb78aa87352cd0b8d6e17b0750582795d8e90a6 Mon Sep 17 00:00:00 2001 From: mfreiholz Date: Thu, 21 Apr 2016 07:05:27 +0200 Subject: [PATCH] fix #16: resets WA_WState_Created to true. No longer apply flag to content wrapper widget. note: setting this flag seems to be very ugly, since it breaks some special content views (3D stuff). --- AdvancedDockingSystem/src/SectionWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AdvancedDockingSystem/src/SectionWidget.cpp b/AdvancedDockingSystem/src/SectionWidget.cpp index 3309b66..d0169f9 100644 --- a/AdvancedDockingSystem/src/SectionWidget.cpp +++ b/AdvancedDockingSystem/src/SectionWidget.cpp @@ -194,6 +194,9 @@ bool SectionWidget::takeContent(int uid, InternalContentData& data) #endif title->disconnect(this); title->setParent(_container); +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) + title->setAttribute(Qt::WA_WState_Created, true); /* fix: floating rubberband #16 */ +#endif } // Content wrapper widget (CONTENT) @@ -201,9 +204,6 @@ bool SectionWidget::takeContent(int uid, InternalContentData& data) if (content) { _contentsLayout->removeWidget(content); -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) - content->setAttribute(Qt::WA_WState_Created, false); /* fix: floating rubberband #16 */ -#endif content->disconnect(this); content->setParent(_container); }