tests/auto/declarative/qmlvisual/focusscope/test2.qml
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
     8     Text { text: "All five rectangles should be red" }
     8     Text { text: "All five rectangles should be red" }
     9 
     9 
    10     FocusScope {
    10     FocusScope {
    11         y: 100
    11         y: 100
    12         focus: true
    12         focus: true
    13         Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
    13         Rectangle { width: 50; height: 50; color: parent.activeFocus?"red":"blue" }
    14 
    14 
    15         FocusScope {
    15         FocusScope {
    16             y: 100
    16             y: 100
    17             focus: true
    17             focus: true
    18             Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
    18             Rectangle { width: 50; height: 50; color: parent.activeFocus?"red":"blue" }
    19 
    19 
    20             FocusScope {
    20             FocusScope {
    21                 y: 100
    21                 y: 100
    22                 focus: true
    22                 focus: true
    23                 Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
    23                 Rectangle { width: 50; height: 50; color: parent.activeFocus?"red":"blue" }
    24 
    24 
    25                 FocusScope {
    25                 FocusScope {
    26                     y: 100
    26                     y: 100
    27                     focus: true
    27                     focus: true
    28                     Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
    28                     Rectangle { width: 50; height: 50; color: parent.activeFocus?"red":"blue" }
    29 
    29 
    30                     FocusScope {
    30                     FocusScope {
    31                         y: 100
    31                         y: 100
    32                         focus: true
    32                         focus: true
    33                         Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
    33                         Rectangle { width: 50; height: 50; color: parent.activeFocus?"red":"blue" }
    34                     }
    34                     }
    35                 }
    35                 }
    36             }
    36             }
    37         }
    37         }
    38     }
    38     }