equal
deleted
inserted
replaced
|
1 import Qt 4.7 |
|
2 |
|
3 Grid { |
|
4 columns: 2 |
|
5 width: 100; height: 100 |
|
6 Rectangle { |
|
7 id: item1 |
|
8 objectName: "item1" |
|
9 focus: true |
|
10 width: 50; height: 50 |
|
11 color: focus ? "red" : "lightgray" |
|
12 KeyNavigation.right: item2 |
|
13 KeyNavigation.down: item3 |
|
14 KeyNavigation.tab: item2 |
|
15 KeyNavigation.backtab: item4 |
|
16 } |
|
17 Rectangle { |
|
18 id: item2 |
|
19 objectName: "item2" |
|
20 width: 50; height: 50 |
|
21 color: focus ? "red" : "lightgray" |
|
22 KeyNavigation.left: item1 |
|
23 KeyNavigation.down: item4 |
|
24 KeyNavigation.tab: item3 |
|
25 KeyNavigation.backtab: item1 |
|
26 } |
|
27 Rectangle { |
|
28 id: item3 |
|
29 objectName: "item3" |
|
30 width: 50; height: 50 |
|
31 color: focus ? "red" : "lightgray" |
|
32 KeyNavigation.right: item4 |
|
33 KeyNavigation.up: item1 |
|
34 KeyNavigation.tab: item4 |
|
35 KeyNavigation.backtab: item2 |
|
36 } |
|
37 Rectangle { |
|
38 id: item4 |
|
39 objectName: "item4" |
|
40 width: 50; height: 50 |
|
41 color: focus ? "red" : "lightgray" |
|
42 KeyNavigation.left: item3 |
|
43 KeyNavigation.up: item2 |
|
44 KeyNavigation.tab: item1 |
|
45 KeyNavigation.backtab: item3 |
|
46 } |
|
47 } |