mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 08:01:32 +08:00
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:
parent
a1225545e4
commit
c3e96cfa67
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user