summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-10-15 04:40:25 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-10-15 04:40:25 (GMT)
commitde8c9d69fa7c7cc50e9a238e58f6e9370f158fc4 (patch)
tree665ac0b890927f12ce27f66a7739668f97f5a4a1 /tools
parent70eb7aedd52aa7ffe4261be7f67e0a9c9026cc5c (diff)
downloadQt-de8c9d69fa7c7cc50e9a238e58f6e9370f158fc4.zip
Qt-de8c9d69fa7c7cc50e9a238e58f6e9370f158fc4.tar.gz
Qt-de8c9d69fa7c7cc50e9a238e58f6e9370f158fc4.tar.bz2
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')
-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 5e169d8..9f9eba0 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));