tests/auto/declarative/qdeclarativetextinput/data/validators.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     1 import Qt 4.7
       
     2 
       
     3 Item {
       
     4     property variant intInput: intInput
       
     5     property variant dblInput: dblInput
       
     6     property variant strInput: strInput
       
     7 
       
     8     width: 800; height: 600;
       
     9 
       
    10     Column{
       
    11         TextInput { id: intInput;
       
    12             validator: IntValidator{top: 11; bottom: 2}
       
    13         }
       
    14         TextInput { id: dblInput;
       
    15             validator: DoubleValidator{top: 12.12; bottom: 2.93; decimals: 2; notation: DoubleValidator.StandardNotation}
       
    16         }
       
    17         TextInput { id: strInput;
       
    18             validator: RegExpValidator { regExp: /[a-zA-z]{2,4}/ }
       
    19         }
       
    20     }
       
    21         
       
    22 }