summaryrefslogtreecommitdiffstats
path: root/examples/declarative/minehunt/Description.qml
blob: 2bc182f42379acf8cc815eb44e6aec490e446c8b (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
import Qt 4.6

Item {
    id: Page
    height: MyText.height + 20
    property var text
    MouseRegion {
        anchors.fill: parent
        drag.target: Page
        drag.axis: "XandYAxis"
        drag.minimumX: 0
        drag.maximumX: 1000
        drag.minimumY: 0
        drag.maximumY: 1000
    }
    Rect {
        radius: 10
        anchors.fill: parent
        color: "lightsteelblue"
    }
    Item {
        x: 10
        y: 10
        width: parent.width - 20
        height: parent.height - 20
        Text {
            id: MyText
            text: Page.text
            width: parent.width
            clip: true
            wrap: true
        }
    }
}