summaryrefslogtreecommitdiffstats
path: root/tools/qmlviewer
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2009-10-05 01:59:16 (GMT)
committerBea Lam <bea.lam@nokia.com>2009-10-05 01:59:16 (GMT)
commite090374657b98b92b040bb0de11e2ce6c085077d (patch)
treea38fe03918cf2b6b2668b06f6c25bb75fa4fea58 /tools/qmlviewer
parent8e3bc733da076e321bd9a03d74aa79eb32d8d1e8 (diff)
downloadQt-e090374657b98b92b040bb0de11e2ce6c085077d.zip
Qt-e090374657b98b92b040bb0de11e2ce6c085077d.tar.gz
Qt-e090374657b98b92b040bb0de11e2ce6c085077d.tar.bz2
Fix so fx items are not stretched to the width of the menu bar in
qmlviewer.
Diffstat (limited to 'tools/qmlviewer')
-rw-r--r--tools/qmlviewer/qmlviewer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp
index b2884dd..e185536 100644
--- a/tools/qmlviewer/qmlviewer.cpp
+++ b/tools/qmlviewer/qmlviewer.cpp
@@ -302,7 +302,7 @@ QmlViewer::QmlViewer(QWidget *parent, Qt::WindowFlags flags)
setLayout(layout);
if (mb)
layout->addWidget(mb);
- layout->addWidget(canvas);
+ layout->addWidget(canvas, 0, Qt::AlignLeft);
setupProxy();
canvas->engine()->networkAccessManager()->setCookieJar(new PersistentCookieJar(this));
@@ -651,6 +651,7 @@ void QmlViewer::openQml(const QString& fileName)
if (!skin) {
canvas->updateGeometry();
canvas->resize(canvas->sizeHint());
+ canvas->updateGeometry();
resize(sizeHint());
} else {
if (scaleSkin)