10402
|
1 |
import QtQuick 2.0
|
|
2 |
import Hedgewars.Engine 1.0
|
|
3 |
|
|
4 |
Rectangle {
|
|
5 |
width: 400
|
|
6 |
height: 400
|
|
7 |
|
|
8 |
HWButton {
|
|
9 |
id: hwbutton1
|
|
10 |
x: 8
|
|
11 |
y: 66
|
|
12 |
width: 166
|
|
13 |
height: 158
|
|
14 |
|
|
15 |
onClicked: {
|
|
16 |
HWEngine.run()
|
|
17 |
}
|
10420
|
18 |
|
|
19 |
Connections {
|
|
20 |
target: HWEngine
|
|
21 |
onPreviewImageChanged: previewImage.source = "image://preview/1"
|
|
22 |
}
|
10402
|
23 |
}
|
|
24 |
|
|
25 |
HWButton {
|
|
26 |
id: hwbutton2
|
|
27 |
x: 192
|
|
28 |
y: 66
|
|
29 |
width: 200
|
|
30 |
height: 139
|
|
31 |
}
|
10420
|
32 |
|
|
33 |
Image {
|
|
34 |
id: previewImage
|
|
35 |
x: 70
|
|
36 |
y: 250
|
|
37 |
width: 256
|
|
38 |
height: 128
|
|
39 |
cache: false
|
|
40 |
}
|
10402
|
41 |
}
|