From bbdceed3008fe53938ecafcc42f000b7cf3a4adf Mon Sep 17 00:00:00 2001 From: Christiaan Janssen Date: Mon, 1 Mar 2010 11:31:41 +0100 Subject: [PATCH] QmlDesigner.PropertyEditor: adjusting label sizes --- .../qmldesigner/propertyeditor/Qt/Label.qml | 2 +- .../qmldesigner/propertyeditor/Qt/Layout.qml | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/Label.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/Label.qml index c3af2d8b6dc..d2736a4a898 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/Label.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/Label.qml @@ -6,5 +6,5 @@ QLabel { font.bold: true; alignment: "Qt::AlignRight | Qt::AlignVCenter" - fixedWidth: 90 + fixedWidth: 98 } diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml index 064aa1d42ea..0a188ae7280 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml @@ -9,6 +9,8 @@ GroupBox { id: layout; enabled: anchorBackend.hasParent; + property var targetLabelWidth: 90 - 20 - 26 + layout: VerticalLayout { QLabel { text: "Anchors" @@ -40,7 +42,7 @@ GroupBox { Label { text: "Target" - fixedWidth: 90 - 20 - 32 + fixedWidth: targetLabelWidth } SiblingComboBox { itemNode: anchorBackend.itemNode @@ -87,7 +89,7 @@ GroupBox { Label { text: "Target" - fixedWidth: 90 - 20 - 32 + fixedWidth: targetLabelWidth } SiblingComboBox { itemNode: anchorBackend.itemNode @@ -134,7 +136,7 @@ GroupBox { Label { text: "Target" - fixedWidth: 90 - 20 - 32 + fixedWidth: targetLabelWidth } SiblingComboBox { itemNode: anchorBackend.itemNode @@ -180,7 +182,7 @@ GroupBox { Label { text: "Target" - fixedWidth: 90 - 20 - 32 + fixedWidth: targetLabelWidth } SiblingComboBox { itemNode: anchorBackend.itemNode @@ -226,7 +228,7 @@ GroupBox { Label { text: "Target" - fixedWidth: 90 - 20 - 32 + fixedWidth: targetLabelWidth } SiblingComboBox { itemNode: anchorBackend.itemNode @@ -272,7 +274,7 @@ GroupBox { Label { text: "Target" - fixedWidth: 90 - 20 - 32 + fixedWidth: targetLabelWidth } SiblingComboBox { itemNode: anchorBackend.itemNode