diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-06-29 06:30:00 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-06-29 06:32:36 (GMT) |
commit | 3bb85e47ddbc18d501e269f043bf92a84066460c (patch) | |
tree | 859b54839061483d8d1211b1fc80f73e3921ea79 /tools/qml/qmlruntime.cpp | |
parent | 5229d1a799377370062e7b3aa88b961bd188fe74 (diff) | |
download | Qt-3bb85e47ddbc18d501e269f043bf92a84066460c.zip Qt-3bb85e47ddbc18d501e269f043bf92a84066460c.tar.gz Qt-3bb85e47ddbc18d501e269f043bf92a84066460c.tar.bz2 |
Fix so window will resize with the root object (broken by
156cabe79a64ffca8d6e1a2df99f35b413a48a39)
Diffstat (limited to 'tools/qml/qmlruntime.cpp')
-rw-r--r-- | tools/qml/qmlruntime.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qml/qmlruntime.cpp b/tools/qml/qmlruntime.cpp index 2cca262..ec748b4 100644 --- a/tools/qml/qmlruntime.cpp +++ b/tools/qml/qmlruntime.cpp @@ -1331,6 +1331,7 @@ void QDeclarativeViewer::orientationChanged() if (size() != rootObjectSize.toSize()) { canvas->setMinimumSize(rootObjectSize.toSize()); canvas->resize(rootObjectSize.toSize()); + resize(rootObjectSize.toSize()); resize(1, 1); // workaround for QMainWindowLayout NOT shrinking the window if the centralWidget() shrinks } } |