aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2014-04-24 16:35:59 +0200
committerThomas Hartmann <Thomas.Hartmann@digia.com>2014-05-09 15:35:43 +0200
commit675a0596715af3f0f0a1cb9ed0d0a8b3e2860d91 (patch)
tree0ae0e5f027fc0e0414b998dcfb8bf1ffe71d78be /share
parent085469b8947602018fe16e057915950b52c6735d (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.qml6
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