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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user