don't reparent before the applet is expanded or not

This commit is contained in:
Marco Martin 2013-12-27 13:26:30 +01:00
parent 4f3228ab44
commit 92073445ce

View File

@ -183,7 +183,8 @@ void AppletInterface::init()
} }
//set parent, both as object hyerarchy and visually //set parent, both as object hyerarchy and visually
if (m_qmlObject->rootObject()) { //do this only for containments, applets will do it in compactrepresentationcheck
if (pc && m_qmlObject->rootObject()) {
m_qmlObject->rootObject()->setProperty("parent", QVariant::fromValue(this)); m_qmlObject->rootObject()->setProperty("parent", QVariant::fromValue(this));
//set anchors //set anchors