QmlDesigner.propertyEditor: enlarge labels

This commit is contained in:
Thomas Hartmann
2011-05-06 18:07:11 +02:00
parent 41d2e661b1
commit c60cfce88c
2 changed files with 6 additions and 4 deletions

View File

@@ -6,17 +6,17 @@ WidgetFrame {
minimumWidth: 300;
property int frameWidth: width
property int labelWidth: 76
property int labelWidth: 96
onFrameWidthChanged: {
if (frameWidth > 300) {
var moreSpace = (frameWidth - 300) / 3;
var newFixedWidth = 76 + moreSpace;
var newFixedWidth = 96 + moreSpace;
if (newFixedWidth > 200)
newFixedWidth = 200;
labelWidth = newFixedWidth;
} else {
labelWidth = 76;
labelWidth = 96;
}
}

View File

@@ -16,7 +16,8 @@ GroupBox {
}
CheckBox {
id: visibleCheckBox;
text: qsTr("Is visible")
text: qsTr("visible")
toolTip: qsTr("isVisible")
backendValue: backendValues.visible;
baseStateFlag: isBaseState;
checkable: true;
@@ -32,6 +33,7 @@ GroupBox {
}
QWidget {
layout: HorizontalLayout {
spacing: 4
Label {
text: ""
}