summaryrefslogtreecommitdiffstats
path: root/examples/declarative/minehunt/Description.qml
blob: f59c8f9a242051124796c49d2314b2f743dc97ec (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
Item {
    id: Page
    height: MyText.height + 20
    properties: Property {
        name: "text"
    }
    MouseRegion {
        anchors.fill: parent
        drag.target: Page
        drag.axis: "xy"
        drag.xmin: 0
        drag.xmax: 1000
        drag.ymin: 0
        drag.ymax: 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
        }
    }
    filter: Shadow {
        xOffset: 5
        yOffset: 5
    }
}