diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/qmldesigner/propertyeditor/Qt/IntEditor.qml | 1 | ||||
-rw-r--r-- | share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml | 30 |
2 files changed, 19 insertions, 12 deletions
diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/IntEditor.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/IntEditor.qml index 2fe97b5bdd..e7fbabf4fc 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/IntEditor.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/IntEditor.qml @@ -26,6 +26,7 @@ QWidget { backendValue: (intEditor.backendValue === undefined || intEditor.backendValue === null) ? null : intEditor.backendValue; + singleStep: step property variant backendValueValue: (intEditor.backendValue === undefined || intEditor.backendValue === null) diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml index 9f10d14f43..1475dd06ff 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml @@ -72,8 +72,9 @@ GroupBox { caption: qsTr("Margin") backendValue: backendValues.anchors_topMargin baseStateFlag: isInBaseState; - maximumValue: 1000 - minimumValue: -1000 + maximumValue: 999 + minimumValue: -999 + step: 1 } PlaceHolder { @@ -121,8 +122,9 @@ GroupBox { caption: qsTr("Margin") backendValue: backendValues.anchors_bottomMargin baseStateFlag: isInBaseState; - maximumValue: 1000 - minimumValue: -1000 + maximumValue: 999 + minimumValue: -999 + step: 1 } PlaceHolder { @@ -169,8 +171,9 @@ GroupBox { caption: qsTr("Margin") backendValue: backendValues.anchors_leftMargin baseStateFlag: isInBaseState; - maximumValue: 1000 - minimumValue: -1000 + maximumValue: 999 + minimumValue: -999 + step: 1 } PlaceHolder { @@ -217,8 +220,9 @@ GroupBox { caption: qsTr("Margin") backendValue: backendValues.anchors_rightMargin baseStateFlag: isInBaseState; - maximumValue: 1000 - minimumValue: -1000 + maximumValue: 999 + minimumValue: -999 + step: 1 } PlaceHolder { @@ -265,8 +269,9 @@ GroupBox { caption: qsTr("Margin") baseStateFlag: isInBaseState; backendValue: backendValues.anchors_horizontalCenterOffset - maximumValue: 1000 - minimumValue: -1000 + maximumValue: 999 + minimumValue: -999 + step: 1 } PlaceHolder { @@ -313,8 +318,9 @@ GroupBox { caption: qsTr("Margin") backendValue: backendValues.anchors_verticalCenterOffset baseStateFlag: isInBaseState; - maximumValue: 1000 - minimumValue: -1000 + maximumValue: 999 + minimumValue: -999 + step: 1 } PlaceHolder { |