branch | qmlfrontend |
changeset 10422 | 4cf23d4c7624 |
child 10424 | 4be6cd55f1cf |
10420:02c573d19224 | 10422:4cf23d4c7624 |
---|---|
1 import QtQuick 2.0 |
|
2 import Hedgewars.Engine 1.0 |
|
3 |
|
4 Rectangle { |
|
5 HWButton { |
|
6 id: btnPreview |
|
7 x: 50 |
|
8 y: 66 |
|
9 width: 150 |
|
10 height: 150 |
|
11 |
|
12 onClicked: { |
|
13 HWEngine.run() |
|
14 } |
|
15 |
|
16 Connections { |
|
17 target: HWEngine |
|
18 onPreviewImageChanged: previewImage.source = "image://preview/1" |
|
19 } |
|
20 } |
|
21 |
|
22 Image { |
|
23 id: previewImage |
|
24 x: 210 |
|
25 y: 70 |
|
26 width: 256 |
|
27 height: 128 |
|
28 cache: false |
|
29 } |
|
30 } |