author | unc0rr |
Wed, 27 Dec 2017 00:59:26 +0100 | |
branch | qmlfrontend |
changeset 12868 | fe16fa088b69 |
parent 12866 | 488782d9aba9 |
child 12881 | b544bbbd0696 |
permissions | -rw-r--r-- |
12859 | 1 |
import QtQuick 2.7 |
12863
0c6fb706f747
More refactoring in attempt to move away from frontlib
unc0rr
parents:
12859
diff
changeset
|
2 |
import Hedgewars.Engine 1.0 |
12859 | 3 |
|
4 |
Page1Form { |
|
12868 | 5 |
gameButton.onClicked: { |
6 |
HWEngine.runQuickGame() |
|
7 |
} |
|
12859 | 8 |
button1.onClicked: { |
12863
0c6fb706f747
More refactoring in attempt to move away from frontlib
unc0rr
parents:
12859
diff
changeset
|
9 |
HWEngine.getPreview() |
12859 | 10 |
} |
12866 | 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 |
||
12859 | 25 |
} |