diff options
-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()); |