Commit 638279cc authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Alessandro Portale

QmlDesigner.PropertyEditor: Unify size of controls

Change-Id: I375396ada5f394247346c3a66319796295894641
Reviewed-by: Alessandro Portale's avatarAlessandro Portale <alessandro.portale@qt.io>
parent c7ba291c
......@@ -84,6 +84,6 @@ ButtonRowButton {
ExtendedFunctionButton {
backendValue: boolButtonRowButton.backendValue
x: 2
y: 4
anchors.verticalCenter: parent.verticalCenter
}
}
......@@ -39,6 +39,7 @@ Controls.CheckBox {
ExtendedFunctionButton {
x: 22
anchors.verticalCenter: parent.verticalCenter
backendValue: checkBox.backendValue
visible: checkBox.enabled
}
......
......@@ -112,7 +112,7 @@ Controls.ComboBox {
ExtendedFunctionButton {
x: 2
y: 6
anchors.verticalCenter: parent.verticalCenter
backendValue: comboBox.backendValue
visible: comboBox.enabled
}
......
......@@ -35,7 +35,7 @@ ComboBoxStyle {
background: Item {
implicitWidth: 120
implicitHeight: 25
implicitHeight: 24
Rectangle {
anchors.fill: parent
......
......@@ -60,13 +60,13 @@ SpinBoxStyle {
height: 4
source: "image://icons/down-arrow"
x: 1
y: 2.5 // Hack! Spinbox sets an non-int offset, somewhere
y: 3
}
}
background: Rectangle {
implicitWidth: Math.max(64, styleData.contentWidth)
implicitHeight: 23
implicitHeight: 24
color: creatorTheme.QmlDesignerBackgroundColorDarker
border.color: creatorTheme.QmlDesignerBorderColor
}
......
......@@ -68,7 +68,7 @@ Controls.ComboBox {
ExtendedFunctionButton {
x: 2
y: 4
anchors.verticalCenter: parent.verticalCenter
backendValue: comboBox.backendValue
visible: comboBox.enabled
}
......
......@@ -52,7 +52,7 @@ Controls.TextField {
ExtendedFunctionButton {
x: 2
y: 6
anchors.verticalCenter: parent.verticalCenter
backendValue: lineEdit.backendValue
visible: lineEdit.enabled && showExtendedFunctionButton
}
......
......@@ -35,7 +35,7 @@ Controls.SpinBox {
ExtendedFunctionButton {
x: 2
y: 4
anchors.verticalCenter: parent.verticalCenter
backendValue: spinBox.backendValue
visible: spinBox.enabled
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment