author | unc0rr |
Sun, 28 Sep 2014 00:18:01 +0400 | |
branch | qmlfrontend |
changeset 10426 | 727a154cf784 |
parent 10424 | 4be6cd55f1cf |
child 10428 | 7c25297720f1 |
permissions | -rw-r--r-- |
10422 | 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 |
|
10424
4be6cd55f1cf
- Get rid of engine's PathPrefix and UserPathPrefix
unc0rr
parents:
10422
diff
changeset
|
18 |
onPreviewImageChanged: previewImage.source = "image://preview/" + HWEngine.currentSeed() |
10422 | 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 |
} |