diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-04 06:33:16 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-04 06:33:16 (GMT) |
commit | 69d16760470d2ae7e84e4612996714a0ba874017 (patch) | |
tree | a1da8790f08661a841ffa69614813efbfd5c0d88 /tools/qmlviewer | |
parent | 4d16a2d4ebc9029d76ba4557346701aae33800ae (diff) | |
download | Qt-69d16760470d2ae7e84e4612996714a0ba874017.zip Qt-69d16760470d2ae7e84e4612996714a0ba874017.tar.gz Qt-69d16760470d2ae7e84e4612996714a0ba874017.tar.bz2 |
Fix "initial" size for remote content.
See also 91be655a7e893d34fdbdb71aa5a329b641c80992
Diffstat (limited to 'tools/qmlviewer')
-rw-r--r-- | tools/qmlviewer/qmlviewer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp index b9f3e67..b6a3627 100644 --- a/tools/qmlviewer/qmlviewer.cpp +++ b/tools/qmlviewer/qmlviewer.cpp @@ -366,7 +366,7 @@ QmlViewer::QmlViewer(QWidget *parent, Qt::WindowFlags flags) void QmlViewer::adjustSizeSlot() { - adjustSize(); + resize(sizeHint()); } QMenuBar *QmlViewer::menuBar() const @@ -722,7 +722,7 @@ void QmlViewer::openQml(const QString& file_or_url) canvas->updateGeometry(); if (mb) mb->updateGeometry(); - adjustSize(); + resize(sizeHint()); } else { if (scaleSkin) canvas->resize(canvas->sizeHint()); |