diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/DoubleSpinBoxAlternate.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/DoubleSpinBoxAlternate.qml index 7836ef3345f54f3daa9d382e2ddc8e21b528a3df..ff6eb442c77c6c707e2286e57e37f1946b5ab3dc 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/DoubleSpinBoxAlternate.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/DoubleSpinBoxAlternate.qml @@ -70,7 +70,7 @@ QWidget { //This is a special doubleSpinBox that does color coding for states id: label; font.bold: true; alignment: doubleSpinBox.alignRight ? "Qt::AlignRight | Qt::AlignVCenter" : "Qt::AlignLeft | Qt::AlignVCenter"; - fixedWidth: 76 + fixedWidth: frame.labelWidth visible: doubleSpinBox.text != ""; toolTip: text } diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/Label.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/Label.qml index bbbbd30fbc53f314dc4d549799044ff9fe908f2f..c3c7c5851aed019c9c27741472a6e094cc3fd820 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/Label.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/Label.qml @@ -4,5 +4,5 @@ import Bauhaus 1.0 QLabel { id: label alignment: "Qt::AlignRight | Qt::AlignVCenter" - fixedWidth: 76 + fixedWidth: frame.labelWidth } diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/PropertyFrame.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/PropertyFrame.qml index 95441b46de6127cd24f8560ca00966d1179fd15b..71e09229807c55a70327cacf7154e6e3c7292943 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/PropertyFrame.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/PropertyFrame.qml @@ -5,6 +5,21 @@ WidgetFrame { id: propertyFrame; minimumWidth: 300; + property int frameWidth: width + property int labelWidth: 76 + + onFrameWidthChanged: { + if (frameWidth > 300) { + var moreSpace = (frameWidth - 300) / 3; + var newFixedWidth = 76 + moreSpace; + if (newFixedWidth > 200) + newFixedWidth = 200; + labelWidth = newFixedWidth; + } else { + labelWidth = 76; + } + } + objectName: "propertyEditorFrame" styleSheetFile: "propertyEditor.css"; }