diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-05-13 06:17:19 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-05-13 06:17:19 (GMT) |
commit | 4788467341f4363c383589402eccd3e1987c1df3 (patch) | |
tree | 0c56990e6a4b0b6c21dc294a1b3fd8d64f183299 /tools/qmlviewer/qmlviewer.cpp | |
parent | 1f8376d3abfa35ab73ae9f0a52a5d597f54040df (diff) | |
download | Qt-4788467341f4363c383589402eccd3e1987c1df3.zip Qt-4788467341f4363c383589402eccd3e1987c1df3.tar.gz Qt-4788467341f4363c383589402eccd3e1987c1df3.tar.bz2 |
Work with no initial file (open dialog).
Resize correctly on open new file.
Diffstat (limited to 'tools/qmlviewer/qmlviewer.cpp')
-rw-r--r-- | tools/qmlviewer/qmlviewer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp index 08b1497..2eddb6a 100644 --- a/tools/qmlviewer/qmlviewer.cpp +++ b/tools/qmlviewer/qmlviewer.cpp @@ -209,6 +209,9 @@ void QmlViewer::openQml(const QString& fileName) t.start(); canvas->execute(); qWarning() << "Wall startup time:" << t.elapsed(); + + resize(sizeHint()); + #ifdef QTOPIA show(); #endif |