mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-04-17 02:44:45 +08:00
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).
This commit is contained in:
parent
c3e96cfa67
commit
1fb78aa873
@ -194,6 +194,9 @@ bool SectionWidget::takeContent(int uid, InternalContentData& data)
|
|||||||
#endif
|
#endif
|
||||||
title->disconnect(this);
|
title->disconnect(this);
|
||||||
title->setParent(_container);
|
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)
|
// Content wrapper widget (CONTENT)
|
||||||
@ -201,9 +204,6 @@ 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