forked from qt-creator/qt-creator
QmlDesigner.propertyEditor: enlarge labels
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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: ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user