summaryrefslogtreecommitdiffstats
path: root/tools/qml
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-06-29 06:30:00 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-06-29 06:32:36 (GMT)
commit3bb85e47ddbc18d501e269f043bf92a84066460c (patch)
tree859b54839061483d8d1211b1fc80f73e3921ea79 /tools/qml
parent5229d1a799377370062e7b3aa88b961bd188fe74 (diff)
downloadQt-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')
-rw-r--r--tools/qml/qmlruntime.cpp1
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
}
}