summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-04-30 03:42:33 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-04-30 03:42:33 (GMT)
commit63fd040014fa21a9e59466781b835d4188965559 (patch)
treeb0a915c1be3fcfb1031cafcdf7881bcd6f5791a9 /src/declarative/util
parentcc73c1e80b480e378a54ad976933f477ee7a5b9c (diff)
downloadQt-63fd040014fa21a9e59466781b835d4188965559.zip
Qt-63fd040014fa21a9e59466781b835d4188965559.tar.gz
Qt-63fd040014fa21a9e59466781b835d4188965559.tar.bz2
Don't delay initial resize
(otherwise "default" widget size happens first)
Diffstat (limited to 'src/declarative/util')
-rw-r--r--src/declarative/util/qfxview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qfxview.cpp b/src/declarative/util/qfxview.cpp
index 42047b6..5611bca 100644
--- a/src/declarative/util/qfxview.cpp
+++ b/src/declarative/util/qfxview.cpp
@@ -265,7 +265,7 @@ void QFxView::continueExecute()
d->root = item;
connect(item, SIGNAL(widthChanged()), this, SLOT(sizeChanged()));
connect(item, SIGNAL(heightChanged()), this, SLOT(sizeChanged()));
- sizeChanged();
+ emit sceneResized(QSize(d->root->width(),d->root->height()));
} else if (QWidget *wid = qobject_cast<QWidget *>(obj)) {
window()->setAttribute(Qt::WA_OpaquePaintEvent, false);
window()->setAttribute(Qt::WA_NoSystemBackground, false);