From 61b699b33640e0ea1145d2914146b93c67d393ff Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 8 Sep 2014 18:50:36 +0200 Subject: [PATCH] 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 --- share/qtcreator/qml/qmlpuppet/mockfiles/Window.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/share/qtcreator/qml/qmlpuppet/mockfiles/Window.qml b/share/qtcreator/qml/qmlpuppet/mockfiles/Window.qml index e9788e4bea6..f71fa13e6d2 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