tests/auto/declarative/qdeclarativetextinput/data/navigation.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     1 import Qt 4.7
       
     2 
       
     3 Rectangle {
       
     4     property variant myInput: input
       
     5 
       
     6     width: 800; height: 600; color: "blue"
       
     7 
       
     8     Item { 
       
     9         id: firstItem;
       
    10         KeyNavigation.right: input
       
    11     }
       
    12 
       
    13     TextInput { id: input; focus: true
       
    14         text: "Needs some text"
       
    15         KeyNavigation.left: firstItem
       
    16         KeyNavigation.right: lastItem
       
    17         KeyNavigation.up: firstItem
       
    18         KeyNavigation.down: lastItem
       
    19     }
       
    20     Item {
       
    21         id: lastItem 
       
    22         KeyNavigation.left: input
       
    23     }
       
    24 }