diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-10-15 04:40:25 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-10-15 04:40:25 (GMT) |
commit | de8c9d69fa7c7cc50e9a238e58f6e9370f158fc4 (patch) | |
tree | 665ac0b890927f12ce27f66a7739668f97f5a4a1 /tools | |
parent | 70eb7aedd52aa7ffe4261be7f67e0a9c9026cc5c (diff) | |
download | Qt-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.cpp | 1 |
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)); |