From 3bb85e47ddbc18d501e269f043bf92a84066460c Mon Sep 17 00:00:00 2001 From: Bea Lam Date: Tue, 29 Jun 2010 16:30:00 +1000 Subject: Fix so window will resize with the root object (broken by 156cabe79a64ffca8d6e1a2df99f35b413a48a39) --- tools/qml/qmlruntime.cpp | 1 + 1 file changed, 1 insertion(+) 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 } } -- cgit v0.12