--- a/qmlfrontend/Page1.qml Tue Nov 06 16:40:54 2018 +0300
+++ b/qmlfrontend/Page1.qml Tue Nov 06 17:00:35 2018 +0100
@@ -1,7 +1,24 @@
import QtQuick 2.7
+import Hedgewars.Engine 1.0
Page1Form {
+ tickButton.onClicked: {
+ item1.tick(100)
+ }
+ gameButton.onClicked: {
+ HWEngine.runQuickGame()
+ }
button1.onClicked: {
- console.log("Button Pressed. Entered text: " + textField1.text);
+ HWEngine.getPreview()
+ }
+
+ Connections {
+ target: HWEngine
+ onPreviewImageChanged: {
+ previewImage.source = "image://preview/image"
+ }
+ onPreviewIsRendering: {
+ previewImage.source = "qrc:/res/iconTime.png"
+ }
}
}