From c3e96cfa67b73ec364985346784dfac076c19d3b Mon Sep 17 00:00:00 2001 From: mfreiholz Date: Wed, 20 Apr 2016 09:24:00 +0200 Subject: [PATCH] Fix #16: sets Qt::WA_WState_Created to false before reparenting to avoid internal hide->show sequence, which does forward mousemove events to splitter.. --- AdvancedDockingSystem/src/SectionWidget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AdvancedDockingSystem/src/SectionWidget.cpp b/AdvancedDockingSystem/src/SectionWidget.cpp index 6647616..3309b66 100644 --- a/AdvancedDockingSystem/src/SectionWidget.cpp +++ b/AdvancedDockingSystem/src/SectionWidget.cpp @@ -189,6 +189,9 @@ bool SectionWidget::takeContent(int uid, InternalContentData& data) if (title) { _tabsLayout->removeWidget(title); +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) + title->setAttribute(Qt::WA_WState_Created, false); /* fix: floating rubberband #16 */ +#endif title->disconnect(this); title->setParent(_container); } @@ -198,6 +201,9 @@ 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); }