From 64ade0d94fa6aa80ad198279fae1c0a2ccaf3c08 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Tue, 13 Apr 2010 15:09:52 +0200 Subject: [PATCH] QmlDesigner.propertyEditor: implements aspect ratio locking deactivated for now, since the form editor does not support it, yet. See: BAUHAUS-496 --- .../qmldesigner/propertyeditor/Qt/Geometry.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/Geometry.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/Geometry.qml index 6bfe03ff933..937f0b15513 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/Geometry.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/Geometry.qml @@ -8,6 +8,7 @@ GroupBox { caption: qsTr("Geometry") layout: VerticalLayout { + bottomMargin: 12 QWidget { // 1 layout: HorizontalLayout { @@ -48,9 +49,11 @@ GroupBox { } //QWidget //1 QWidget { + id: bottomWidget layout: HorizontalLayout { Label { + id: sizeLabel text: qsTr("Size") } @@ -82,4 +85,17 @@ GroupBox { } //QVBoxLayout } //QWidget } //QHBoxLayout + + QPushButton { + checkable: true + toolTip: qsTr("Lock aspect ratio") + fixedWidth: 45 + width: fixedWidth + fixedHeight: 9 + height: fixedHeight + styleSheetFile: "aspectlock.css"; + x: bottomWidget.x + ((bottomWidget.width - sizeLabel.width) / 2) + sizeLabel.width - 8 + y: bottomWidget.y + bottomWidget.height + 2 + visible: false //hide until the visual editor implements this feature ### + } } //QGroupBox -- GitLab