summaryrefslogtreecommitdiffstats
path: root/flickablelist/Cols.qml
blob: 4083f12009085bd531e5157baece79888f445422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import Qt 4.7
import Qt.labs.gestures 2.0


Column {
    id: column
    width: parent.width
    Repeater {
        model: 10
        Button {
            width: column.width
            property real r: Math.random()
            property real g: Math.random()
            property real b: Math.random()
            color: Qt.rgba(r,g,b,1)
            text: "Button " + index
        }
    }
    Rectangle {
        height: 100
        border.width: 1
        width: column.width
        color: "grey"

        Text {
            anchors.fill:  parent
            id: buttonText
            text: "Exit"
            font.pointSize: 20
        }

        GestureArea {
            anchors.fill: parent
            Tap {
                onFinished: {
                    Qt.quit()
                }
            }
        }
    }
}