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:
mfreiholz 2016-04-21 07:05:27 +02:00
parent c3e96cfa67
commit 1fb78aa873

View File

@ -194,6 +194,9 @@ bool SectionWidget::takeContent(int uid, InternalContentData& data)
#endif
title->disconnect(this);
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)
@ -201,9 +204,6 @@ 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);
}