author | unc0rr |
Wed, 27 Dec 2017 00:59:26 +0100 | |
branch | qmlfrontend |
changeset 12863 | fe16fa088b69 |
parent 12861 | 488782d9aba9 |
child 12876 | b544bbbd0696 |
permissions | -rw-r--r-- |
12854 | 1 |
import QtQuick 2.7 |
12858
0c6fb706f747
More refactoring in attempt to move away from frontlib
unc0rr
parents:
12854
diff
changeset
|
2 |
import Hedgewars.Engine 1.0 |
12854 | 3 |
|
4 |
Page1Form { |
|
12863 | 5 |
gameButton.onClicked: { |
6 |
HWEngine.runQuickGame() |
|
7 |
} |
|
12854 | 8 |
button1.onClicked: { |
12858
0c6fb706f747
More refactoring in attempt to move away from frontlib
unc0rr
parents:
12854
diff
changeset
|
9 |
HWEngine.getPreview() |
12854 | 10 |
} |
12861 | 11 |
|
12 |
Connections { |
|
13 |
target: HWEngine |
|
14 |
onPreviewImageChanged: { |
|
15 |
previewImage.source = "image://preview/image" |
|
16 |
} |
|
17 |
onPreviewIsRendering: { |
|
18 |
console.log("==========") |
|
19 |
previewImage.source = "qrc:/res/iconTime.png" |
|
20 |
} |
|
21 |
onPreviewHogCountChanged: { |
|
22 |
} |
|
23 |
} |
|
24 |
||
12854 | 25 |
} |