make sure full representations don't get loaded

This commit is contained in:
Marco Martin 2014-02-10 18:14:11 +01:00
parent 6f8f9a9c64
commit 4e13ce6966

View File

@ -215,7 +215,6 @@ QObject *AppletQuickItemPrivate::createCompactRepresentationExpanderItem()
compactRepresentationExpanderItem.data()->setProperty("compactRepresentation", QVariant::fromValue(createCompactRepresentationItem()));
compactRepresentationExpanderItem.data()->setProperty("fullRepresentation", QVariant::fromValue(createFullRepresentationItem()));
return compactRepresentationExpanderItem.data();
}
@ -611,8 +610,10 @@ void AppletQuickItem::setExpanded(bool expanded)
return;
}
if (expanded) {
d->createFullRepresentationItem();
d->compactRepresentationExpanderItem.data()->setProperty("fullRepresentation", QVariant::fromValue(d->createFullRepresentationItem()));
}
d->expanded = expanded;
emit expandedChanged(expanded);