diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-02-09 09:16:06 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-02-09 09:16:06 (GMT) |
commit | bd746fc9917682d6f211d7af16264be6327c5ee0 (patch) | |
tree | 10e65c30bb05509571a0c65ca1021fcf8399b9c1 | |
parent | e30d5a56506c4f677d18f9cb867f0bd50615b197 (diff) | |
download | Qt-bd746fc9917682d6f211d7af16264be6327c5ee0.zip Qt-bd746fc9917682d6f211d7af16264be6327c5ee0.tar.gz Qt-bd746fc9917682d6f211d7af16264be6327c5ee0.tar.bz2 |
Missed a file
-rw-r--r-- | tests/auto/declarative/qmlgraphicstextinput/data/validators.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlgraphicstextinput/data/validators.qml b/tests/auto/declarative/qmlgraphicstextinput/data/validators.qml new file mode 100644 index 0000000..673790d --- /dev/null +++ b/tests/auto/declarative/qmlgraphicstextinput/data/validators.qml @@ -0,0 +1,23 @@ +import Qt 4.6 + +Item { + property var intInput: intInput + property var dblInput: dblInput + property var strInput: strInput + + width: 800; height: 600; + + Column{ + TextInput { id: intInput; + validator: QIntValidator{top: 11; bottom: 2} + } + TextInput { id: dblInput; + validator: QDoubleValidator{top: 12.12; bottom: 2.93; decimals: 2; notation: QDoubleValidator.StandardNotation} + } + TextInput { id: strInput; + //Requires QTBUG-8025 to be implemented first + //validator: QRegExpValidator { regExp: /[a-zA-z]{2,4}/;} + } + } + +} |