Skip to content
Snippets Groups Projects
Commit 64ade0d9 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: implements aspect ratio locking

deactivated for now, since the form editor does not support it, yet.
See: BAUHAUS-496
parent 99b769dd
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment