author | unc0rr |
Sun, 28 Sep 2014 21:33:14 +0400 | |
branch | qmlfrontend |
changeset 10432 | b0abef0ee78c |
parent 10428 | 7c25297720f1 |
child 10434 | 1614b13ad35e |
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 |
||
10432 | 12 |
onClicked: HWEngine.getPreview() |
10422 | 13 |
|
14 |
Connections { |
|
15 |
target: HWEngine |
|
10424
4be6cd55f1cf
- Get rid of engine's PathPrefix and UserPathPrefix
unc0rr
parents:
10422
diff
changeset
|
16 |
onPreviewImageChanged: previewImage.source = "image://preview/" + HWEngine.currentSeed() |
10422 | 17 |
} |
18 |
} |
|
19 |
||
20 |
Image { |
|
21 |
id: previewImage |
|
22 |
x: 210 |
|
23 |
y: 70 |
|
24 |
width: 256 |
|
25 |
height: 128 |
|
26 |
cache: false |
|
27 |
} |
|
28 |
} |