author | unc0rr |
Tue, 26 Dec 2017 01:36:58 +0100 | |
branch | qmlfrontend |
changeset 12866 | 488782d9aba9 |
parent 12863 | 0c6fb706f747 |
child 12868 | fe16fa088b69 |
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 { |
|
5 |
button1.onClicked: { |
|
12863
0c6fb706f747
More refactoring in attempt to move away from frontlib
unc0rr
parents:
12859
diff
changeset
|
6 |
console.log("Button clicked") |
0c6fb706f747
More refactoring in attempt to move away from frontlib
unc0rr
parents:
12859
diff
changeset
|
7 |
HWEngine.getPreview() |
12859 | 8 |
} |
12866 | 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 |
||
12859 | 23 |
} |