summaryrefslogtreecommitdiffstats
path: root/tools/qml
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-10-15 14:40:25 +1000
committerAlan Alpert <alan.alpert@nokia.com>2010-10-15 14:40:25 +1000
commitde8c9d69fa7c7cc50e9a238e58f6e9370f158fc4 (patch)
tree665ac0b890927f12ce27f66a7739668f97f5a4a1 /tools/qml
parent70eb7aedd52aa7ffe4261be7f67e0a9c9026cc5c (diff)
Keep qmlviewer from disappearing
qmlviewer was disappearing if the scene was 0x0. Now it's just unusably small, which is correct as it will highlight the problem to the developer.
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 5e169d8a83..9f9eba07d4 100644
--- a/tools/qml/qmlruntime.cpp
+++ b/tools/qml/qmlruntime.cpp
@@ -1518,6 +1518,7 @@ void QDeclarativeViewer::updateSizeHints(bool initial)
//qWarning() << "USH: R2V: setting free size ";
layout()->setSizeConstraint(QLayout::SetNoConstraint);
layout()->activate();
+ setMinimumSize(QSize(1,1));
setMaximumSize(QSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX));
canvas->setMinimumSize(QSize(0,0));
canvas->setMaximumSize(QSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX));