forked from qt-creator/qt-creator
QmlDesigner.PropertyEditor: Unify size of controls
Change-Id: I375396ada5f394247346c3a66319796295894641 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
committed by
Alessandro Portale
parent
c7ba291c68
commit
638279cc98
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user