summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2014-09-08 18:50:36 +0200
committerThomas Hartmann <Thomas.Hartmann@digia.com>2014-09-09 10:38:07 +0200
commit61b699b33640e0ea1145d2914146b93c67d393ff (patch)
treedac6d0eb0beae79df3d9c5cf3a29f48113e86161
parent99aae36e7a909f27f74f34ab4a208d61a529d4ce (diff)
downloadqt-creator-61b699b33640e0ea1145d2914146b93c67d393ff.tar.gz
QmlDesigner.Puppet: Adding size hints to Window mockup
Without defining the properties, the properties do not work and do not get notified properly. They are also missing defaults which breaks "resetting". Task-number: QTCREATORBUG-13004 Change-Id: Ib36f39770930be486225b45169d2ebdb53df8df4 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
-rw-r--r--share/qtcreator/qml/qmlpuppet/mockfiles/Window.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/mockfiles/Window.qml b/share/qtcreator/qml/qmlpuppet/mockfiles/Window.qml
index e9788e4bea..f71fa13e6d 100644
--- a/share/qtcreator/qml/qmlpuppet/mockfiles/Window.qml
+++ b/share/qtcreator/qml/qmlpuppet/mockfiles/Window.qml
@@ -13,6 +13,12 @@ Rectangle {
onStatusBarChanged: { if (statusBar) { statusBar.parent = statusBarArea } }
onToolBarChanged: { if (toolBar) { toolBar.parent = toolBarArea } }
+ property int maximumWidth: 0
+ property int minimumWidth: 0
+
+ property int maximumHeight: 0
+ property int minimumHeight: 0
+
Item {
id: contentArea
anchors.top: toolBarArea.bottom