diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-04-30 03:42:33 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-04-30 03:42:33 (GMT) |
commit | 63fd040014fa21a9e59466781b835d4188965559 (patch) | |
tree | b0a915c1be3fcfb1031cafcdf7881bcd6f5791a9 /src/declarative/util/qfxview.cpp | |
parent | cc73c1e80b480e378a54ad976933f477ee7a5b9c (diff) | |
download | Qt-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/qfxview.cpp')
-rw-r--r-- | src/declarative/util/qfxview.cpp | 2 |
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); |