From 238dfa51858e33cdce11ddf6ff78b49d906970fe Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Thu, 27 May 2010 11:47:15 +0200 Subject: [PATCH] QmlDesigner.propertyEditor: anchor fill button is now checkable --- .../qmldesigner/propertyeditor/Qt/AnchorButtons.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/AnchorButtons.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/AnchorButtons.qml index f025926987c..44d3cc6ac0b 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/AnchorButtons.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/AnchorButtons.qml @@ -125,8 +125,15 @@ QWidget { height: fixedHeight styleSheetFile: "anchorfill.css"; + checkable: true - onReleased: fill(); + onReleased: { + if (checked) { + anchorBackend.fill(); + } else { + anchorBackend.resetLayout(); + } + } } QPushButton { -- GitLab