summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlview.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-09-24 08:39:12 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-09-24 08:39:12 (GMT)
commit764601ac70042b3f733d114496b2fd5e4bbacda6 (patch)
treebe1c3a7a6723cdd9d76d0d1f311fa6e753017c2a /src/declarative/util/qmlview.cpp
parent3402f53a52d6e1a4bce2a0ff084754399c312b08 (diff)
downloadQt-764601ac70042b3f733d114496b2fd5e4bbacda6.zip
Qt-764601ac70042b3f733d114496b2fd5e4bbacda6.tar.gz
Qt-764601ac70042b3f733d114496b2fd5e4bbacda6.tar.bz2
Prevent qmlviewer from confusing people when root items are small.
Task-number: QT-711
Diffstat (limited to 'src/declarative/util/qmlview.cpp')
-rw-r--r--src/declarative/util/qmlview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/util/qmlview.cpp b/src/declarative/util/qmlview.cpp
index 7cce2da..805612e 100644
--- a/src/declarative/util/qmlview.cpp
+++ b/src/declarative/util/qmlview.cpp
@@ -340,6 +340,8 @@ void QmlView::continueExecute()
d->initialSize.setWidth(d->root->width());
if (d->initialSize.height() <= 0 && d->root->height() > 0)
d->initialSize.setHeight(d->root->height());
+ resize(d->initialSize);
+
if (d->resizable) {
d->root->setWidth(width());
d->root->setHeight(height());