4 This test displays 6 red rects -- 4 in the top row, 2 in the bottom.
7 1. the bottom-left rect turns blue, then green
8 2. the second rect in the top row turns blue
9 3. the third rect in the top row turns blue
10 4. the last rect in the top row quickly turns blue then back to red
11 5. the bottom-left rect turns blue, then green
27 onClicked: { parent.color = "blue"; root.error = "mr1 should ignore presses"; }
31 // Left click, then right click
39 acceptedButtons: Qt.RightButton
41 if (mouse.button == Qt.RightButton) {
42 parent.color = "blue";
44 parent.color = "green";
45 root.error = "mr1 should ignore presses";
60 parent.color = "blue";
74 parent.color = "blue";
82 // move into and out of me
93 parent.color = "blue";
96 parent.color = "green";
101 // click, then double click me
105 width: 98; height: 48
111 parent.color = "blue";
114 parent.color = "green";
119 // click, then double click me - nothing should happen
123 width: 98; height: 48
129 onClicked: { parent.color = "blue" }
130 onPressed: { parent.color = "yellow" }
131 onReleased: { parent.color = "cyan" }
132 onDoubleClicked: { parent.color = "green" }