QmlDesigner.PropertyEditor: Unify size of controls

Change-Id: I375396ada5f394247346c3a66319796295894641
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Thomas Hartmann
2016-07-28 12:33:07 +02:00
committed by Alessandro Portale
parent c7ba291c68
commit 638279cc98
8 changed files with 9 additions and 8 deletions

View File

@@ -84,6 +84,6 @@ ButtonRowButton {
ExtendedFunctionButton {
backendValue: boolButtonRowButton.backendValue
x: 2
y: 4
anchors.verticalCenter: parent.verticalCenter
}
}

View File

@@ -39,6 +39,7 @@ Controls.CheckBox {
ExtendedFunctionButton {
x: 22
anchors.verticalCenter: parent.verticalCenter
backendValue: checkBox.backendValue
visible: checkBox.enabled
}

View File

@@ -112,7 +112,7 @@ Controls.ComboBox {
ExtendedFunctionButton {
x: 2
y: 6
anchors.verticalCenter: parent.verticalCenter
backendValue: comboBox.backendValue
visible: comboBox.enabled
}

View File

@@ -35,7 +35,7 @@ ComboBoxStyle {
background: Item {
implicitWidth: 120
implicitHeight: 25
implicitHeight: 24
Rectangle {
anchors.fill: parent

View File

@@ -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
}

View File

@@ -68,7 +68,7 @@ Controls.ComboBox {
ExtendedFunctionButton {
x: 2
y: 4
anchors.verticalCenter: parent.verticalCenter
backendValue: comboBox.backendValue
visible: comboBox.enabled
}

View File

@@ -52,7 +52,7 @@ Controls.TextField {
ExtendedFunctionButton {
x: 2
y: 6
anchors.verticalCenter: parent.verticalCenter
backendValue: lineEdit.backendValue
visible: lineEdit.enabled && showExtendedFunctionButton
}

View File

@@ -35,7 +35,7 @@ Controls.SpinBox {
ExtendedFunctionButton {
x: 2
y: 4
anchors.verticalCenter: parent.verticalCenter
backendValue: spinBox.backendValue
visible: spinBox.enabled
}