forked from qt-creator/qt-creator
QmlDesigner.PropertyEditor: adjusting label sizes
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user