Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for changing bounds of validators and acceptableInput
Task-number: QTBUG-19956 Change-Id: I771477d99939ef986bf3fa53e64a372f23ef5593 Reviewed-by: Charles Yin <charles.yin@nokia.com>
- Loading branch information
Damian Jansen
authored and
Qt by Nokia
committed
Oct 21, 2011
1 parent
2bf7113
commit 7fdeed1
Showing
4 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
tests/auto/declarative/qsgtextinput/data/qtbug-19956double.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import QtQuick 2.0 | ||
|
||
TextInput { | ||
id: textinput | ||
property real topvalue: 30 | ||
property real bottomvalue: 10 | ||
height: 50 | ||
width: 200 | ||
text: "20" | ||
validator: DoubleValidator { | ||
id: doublevalidator | ||
bottom: bottomvalue | ||
top: topvalue | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
tests/auto/declarative/qsgtextinput/data/qtbug-19956int.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import QtQuick 2.0 | ||
|
||
TextInput { | ||
id: textinput | ||
property real topvalue: 30 | ||
property real bottomvalue: 10 | ||
height: 50 | ||
width: 200 | ||
text: "20" | ||
validator: IntValidator { | ||
id: intvalidator | ||
bottom: bottomvalue | ||
top: topvalue | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
tests/auto/declarative/qsgtextinput/data/qtbug-19956regexp.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import QtQuick 2.0 | ||
|
||
TextInput { | ||
id: textinput | ||
property variant regexvalue | ||
height: 50 | ||
width: 200 | ||
text: "abc" | ||
validator: RegExpValidator { | ||
id: regexpvalidator | ||
regExp: regexvalue | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters