author | unC0Rr |
Tue, 06 Nov 2018 17:00:35 +0100 | |
changeset 14143 | 745c73e0e644 |
parent 12854 | 28cb18c5e712 |
child 14154 | 8354b390f1a2 |
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: { |
6 |
item1.tick(100) |
|
7 |
} |
|
8 |
gameButton.onClicked: { |
|
9 |
HWEngine.runQuickGame() |
|
10 |
} |
|
12854 | 11 |
button1.onClicked: { |
14143 | 12 |
HWEngine.getPreview() |
13 |
} |
|
14 |
||
15 |
Connections { |
|
16 |
target: HWEngine |
|
17 |
onPreviewImageChanged: { |
|
18 |
previewImage.source = "image://preview/image" |
|
19 |
} |
|
20 |
onPreviewIsRendering: { |
|
21 |
previewImage.source = "qrc:/res/iconTime.png" |
|
22 |
} |
|
12854 | 23 |
} |
24 |
} |