author | nemo |
Wed, 21 Nov 2018 15:26:54 -0500 | |
changeset 14264 | 6f3f59266c4c |
parent 14154 | 8354b390f1a2 |
child 14294 | 21be7838a127 |
permissions | -rw-r--r-- |
12854 | 1 |
import QtQuick 2.7 |
14143 | 2 |
import Hedgewars.Engine 1.0 |
12854 | 3 |
|
4 |
Page1Form { |
|
14143 | 5 |
tickButton.onClicked: { |
14154
8354b390f1a2
Some refactoring of qmlfrontend. It now shows land preview generated by hedgewars-engine
unC0Rr
parents:
14143
diff
changeset
|
6 |
|
8354b390f1a2
Some refactoring of qmlfrontend. It now shows land preview generated by hedgewars-engine
unC0Rr
parents:
14143
diff
changeset
|
7 |
// item1.tick(100) |
14143 | 8 |
} |
9 |
gameButton.onClicked: { |
|
10 |
HWEngine.runQuickGame() |
|
11 |
} |
|
12854 | 12 |
button1.onClicked: { |
14143 | 13 |
HWEngine.getPreview() |
14 |
} |
|
15 |
||
16 |
Connections { |
|
17 |
target: HWEngine |
|
18 |
onPreviewImageChanged: { |
|
19 |
previewImage.source = "image://preview/image" |
|
20 |
} |
|
21 |
onPreviewIsRendering: { |
|
22 |
previewImage.source = "qrc:/res/iconTime.png" |
|
23 |
} |
|
12854 | 24 |
} |
25 |
} |