QmlDesigner.PropertyEditor: adjusting combobox sizes

Using Layout.fillWidth: true.

Task-Number: QTCREATORBUG-10413
Change-Id: Ia2771fa6e8a4cbb3acc3c2893fccbcb23fa78f6f
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Thomas Hartmann
2013-10-23 10:19:22 +02:00
parent 62b0f4372b
commit 067c789c09
11 changed files with 24 additions and 50 deletions
@@ -37,7 +37,7 @@ ComboBoxStyle {
property color textColor: "#eee"
background: Item {
implicitWidth: 100
implicitWidth: 120
implicitHeight: 25
RoundedPanel {
@@ -90,10 +90,9 @@ Section {
ComboBox {
backendValue: backendValues.flickableDirection
model: ["AutoFlickDirection", "HorizontalFlick", "VerticalFlick", "HorizontalAndVerticalFlick"]
Layout.fillWidth: true
}
ExpandingSpacer {
}
}
Label {
@@ -105,10 +104,9 @@ Section {
ComboBox {
backendValue: backendValues.boundsBehavior
model: ["StopAtBounds", "DragOverBounds", "DragAndOvershootBounds"]
Layout.fillWidth: true
}
ExpandingSpacer {
}
}
Label {
@@ -120,9 +118,7 @@ Section {
ComboBox {
backendValue: backendValues.boundsBehavior
model: ["StopAtBounds", "DragOverBounds", "DragAndOvershootBounds"]
}
ExpandingSpacer {
Layout.fillWidth: true
}
}
@@ -120,6 +120,8 @@ Section {
}
Layout.fillWidth: true
style: CustomComboBoxStyle {
}
@@ -136,10 +136,7 @@ Column {
model: ["Stretch", "Repeat", "Round"]
backendValue: backendValues.horizontalTileMode
implicitWidth: 180
}
ExpandingSpacer {
Layout.fillWidth: true
}
}
@@ -152,11 +149,9 @@ Column {
model: ["Stretch", "Repeat", "Round"]
backendValue: backendValues.verticalTileMode
implicitWidth: 180
Layout.fillWidth: true
}
ExpandingSpacer {
}
}
@@ -64,11 +64,9 @@ Column {
ComboBox {
model: ["LeftToRight", "RightToLeft"]
backendValue: backendValues.layoutDirection
Layout.fillWidth: true
}
ExpandingSpacer {
}
}
Label {
@@ -78,7 +78,9 @@ Section {
minimumValue: -0xffff
decimals: 0
}
ExpandingSpacer{}
ExpandingSpacer {
}
}
Label {
text: qsTr("Size")
@@ -110,7 +112,9 @@ Section {
minimumValue: -0xffff
decimals: 0
}
ExpandingSpacer{}
ExpandingSpacer {
}
}
}
}
@@ -83,10 +83,7 @@ Column {
ComboBox {
model: ["LeftToRight", "TopToBottom"]
backendValue: backendValues.flow
}
ExpandingSpacer {
Layout.fillWidth: true
}
}
@@ -98,11 +95,9 @@ Column {
ComboBox {
model: ["LeftToRight", "RightToLeft"]
backendValue: backendValues.layoutDirection
Layout.fillWidth: true
}
ExpandingSpacer {
}
}
Label {
@@ -109,10 +109,7 @@ Column {
ComboBox {
model: ["LeftToRight", "TopToBottom"]
backendValue: backendValues.flow
}
ExpandingSpacer {
Layout.fillWidth: true
}
}
@@ -139,10 +136,7 @@ Column {
ComboBox {
model: ["LeftToRight", "RightToLeft"]
backendValue: backendValues.layoutDirection
}
ExpandingSpacer {
Layout.fillWidth: true
}
}
@@ -155,10 +149,7 @@ Column {
ComboBox {
model: ["NoSnap", "SnapToRow", "SnapOneRow"]
backendValue: backendValues.snapMode
}
ExpandingSpacer {
Layout.fillWidth: true
}
}
@@ -181,10 +172,7 @@ Column {
ComboBox {
model: ["NoHighlightRange", "ApplyRange", "StrictlyEnforceRange"]
backendValue: backendValues.highlightRangeMode
}
ExpandingSpacer {
Layout.fillWidth: true
}
}
@@ -64,6 +64,7 @@ Column {
model: ["Stretch", "PreserveAspectFit", "PreserveAspectCrop", "Tile", "TileVertically", "TileHorizontally"]
backendValue: backendValues.fillMode
implicitWidth: 180
Layout.fillWidth: true
}
ExpandingSpacer {
@@ -89,11 +89,9 @@ Column {
ComboBox {
model: ["Horizontal", "Vertical"]
backendValue: backendValues.orientation
Layout.fillWidth: true
}
ExpandingSpacer {
}
}
Label {
@@ -49,10 +49,7 @@ Column {
ComboBox {
model: ["LeftToRight", "RightToLeft"]
backendValue: backendValues.layoutDirection
}
ExpandingSpacer {
Layout.fillWidth: true
}
}