QmlDesigner.PropertyEditor: adjusting label sizes

This commit is contained in:
Christiaan Janssen
2010-03-01 11:31:41 +01:00
parent b03b484158
commit bbdceed300
2 changed files with 9 additions and 7 deletions

View File

@@ -6,5 +6,5 @@ QLabel {
font.bold: true; font.bold: true;
alignment: "Qt::AlignRight | Qt::AlignVCenter" alignment: "Qt::AlignRight | Qt::AlignVCenter"
fixedWidth: 90 fixedWidth: 98
} }

View File

@@ -9,6 +9,8 @@ GroupBox {
id: layout; id: layout;
enabled: anchorBackend.hasParent; enabled: anchorBackend.hasParent;
property var targetLabelWidth: 90 - 20 - 26
layout: VerticalLayout { layout: VerticalLayout {
QLabel { QLabel {
text: "Anchors" text: "Anchors"
@@ -40,7 +42,7 @@ GroupBox {
Label { Label {
text: "Target" text: "Target"
fixedWidth: 90 - 20 - 32 fixedWidth: targetLabelWidth
} }
SiblingComboBox { SiblingComboBox {
itemNode: anchorBackend.itemNode itemNode: anchorBackend.itemNode
@@ -87,7 +89,7 @@ GroupBox {
Label { Label {
text: "Target" text: "Target"
fixedWidth: 90 - 20 - 32 fixedWidth: targetLabelWidth
} }
SiblingComboBox { SiblingComboBox {
itemNode: anchorBackend.itemNode itemNode: anchorBackend.itemNode
@@ -134,7 +136,7 @@ GroupBox {
Label { Label {
text: "Target" text: "Target"
fixedWidth: 90 - 20 - 32 fixedWidth: targetLabelWidth
} }
SiblingComboBox { SiblingComboBox {
itemNode: anchorBackend.itemNode itemNode: anchorBackend.itemNode
@@ -180,7 +182,7 @@ GroupBox {
Label { Label {
text: "Target" text: "Target"
fixedWidth: 90 - 20 - 32 fixedWidth: targetLabelWidth
} }
SiblingComboBox { SiblingComboBox {
itemNode: anchorBackend.itemNode itemNode: anchorBackend.itemNode
@@ -226,7 +228,7 @@ GroupBox {
Label { Label {
text: "Target" text: "Target"
fixedWidth: 90 - 20 - 32 fixedWidth: targetLabelWidth
} }
SiblingComboBox { SiblingComboBox {
itemNode: anchorBackend.itemNode itemNode: anchorBackend.itemNode
@@ -272,7 +274,7 @@ GroupBox {
Label { Label {
text: "Target" text: "Target"
fixedWidth: 90 - 20 - 32 fixedWidth: targetLabelWidth
} }
SiblingComboBox { SiblingComboBox {
itemNode: anchorBackend.itemNode itemNode: anchorBackend.itemNode