Fix #16: sets Qt::WA_WState_Created to false before reparenting to avoid internal hide->show sequence, which does forward mousemove events to splitter..

This commit is contained in:
mfreiholz 2016-04-20 09:24:00 +02:00
parent a1225545e4
commit c3e96cfa67

View File

@ -189,6 +189,9 @@ bool SectionWidget::takeContent(int uid, InternalContentData& data)
if (title) if (title)
{ {
_tabsLayout->removeWidget(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->disconnect(this);
title->setParent(_container); title->setParent(_container);
} }
@ -198,6 +201,9 @@ bool SectionWidget::takeContent(int uid, InternalContentData& data)
if (content) if (content)
{ {
_contentsLayout->removeWidget(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->disconnect(this);
content->setParent(_container); content->setParent(_container);
} }