blob: cc4d3b202a01df2b7e19a0efa890e45d556b240b (
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
MouseArea {
anchors.fill: parent
drag.target: page
drag.axis: "XandYAxis"
drag.minimumX: 0
drag.maximumX: 1000
drag.minimumY: 0
drag.maximumY: 1000
}
Rectangle {
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
}
}
}
|