set main object size after loading

This commit is contained in:
Marco Martin 2011-02-28 13:47:09 +01:00
parent 80eb4eafea
commit c6215bb249

View File

@ -145,6 +145,8 @@ void DeclarativeWidgetPrivate::finishExecute()
if (object) {
width = object->property("width").toReal();
height = object->property("height").toReal();
object->setProperty("width", q->size().width());
object->setProperty("height", q->size().height());
}
if (width > 0 && height > 0) {