author | unc0rr |
Tue, 26 Dec 2017 01:36:58 +0100 | |
branch | qmlfrontend |
changeset 12861 | 488782d9aba9 |
parent 12858 | 0c6fb706f747 |
child 12863 | fe16fa088b69 |
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 { |
|
5 |
button1.onClicked: { |
|
12858
0c6fb706f747
More refactoring in attempt to move away from frontlib
unc0rr
parents:
12854
diff
changeset
|
6 |
console.log("Button clicked") |
0c6fb706f747
More refactoring in attempt to move away from frontlib
unc0rr
parents:
12854
diff
changeset
|
7 |
HWEngine.getPreview() |
12854 | 8 |
} |
12861 | 9 |
|
10 |
Connections { |
|
11 |
target: HWEngine |
|
12 |
onPreviewImageChanged: { |
|
13 |
previewImage.source = "image://preview/image" |
|
14 |
} |
|
15 |
onPreviewIsRendering: { |
|
16 |
console.log("==========") |
|
17 |
previewImage.source = "qrc:/res/iconTime.png" |
|
18 |
} |
|
19 |
onPreviewHogCountChanged: { |
|
20 |
} |
|
21 |
} |
|
22 |
||
12854 | 23 |
} |