diff options
author | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2014-04-24 16:35:59 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2014-05-09 15:35:43 +0200 |
commit | 675a0596715af3f0f0a1cb9ed0d0a8b3e2860d91 (patch) | |
tree | 0ae0e5f027fc0e0414b998dcfb8bf1ffe71d78be /share | |
parent | 085469b8947602018fe16e057915950b52c6735d (diff) |
QmlDesigner.PropertyEditor: Using regExp instead of inputMask
This does work as expected.
Task-number: QTCREATORBUG-12018
Change-Id: I1ae4c2f9c222ffcc68a81ab545fe19ac253b0dbb
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ColorEditor.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ColorEditor.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ColorEditor.qml index 067e42a273..b897a9f634 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ColorEditor.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ColorEditor.qml @@ -130,7 +130,11 @@ Column { LineEdit { id: textField - inputMask: "\\#HHHHHHhh" + + validator: RegExpValidator { + regExp: /#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?/g + } + showTranslateCheckBox: false backendValue: colorEditor.backendendValue |