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; minimumWidth: 300;
property int frameWidth: width property int frameWidth: width
property int labelWidth: 76 property int labelWidth: 96
onFrameWidthChanged: { onFrameWidthChanged: {
if (frameWidth > 300) { if (frameWidth > 300) {
var moreSpace = (frameWidth - 300) / 3; var moreSpace = (frameWidth - 300) / 3;
var newFixedWidth = 76 + moreSpace; var newFixedWidth = 96 + moreSpace;
if (newFixedWidth > 200) if (newFixedWidth > 200)
newFixedWidth = 200; newFixedWidth = 200;
labelWidth = newFixedWidth; labelWidth = newFixedWidth;
} else { } else {
labelWidth = 76; labelWidth = 96;
} }
} }

View File

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