Commit 2aefea55 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.property: do not allow to enter ',' for margins.

If minimum/maximum < 1000 the validator does not allow ','.
Allowing ',' confuses users.

Change-Id: I5ce3b809ea03552e03f11461d677d6212edb3aa4
Reviewed-on: http://codereview.qt.nokia.com/105Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 1c401481
......@@ -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)
......
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment