qmlfrontend/Page1.qml
branchqmlfrontend
changeset 12858 0c6fb706f747
parent 12854 28cb18c5e712
child 12861 488782d9aba9
--- a/qmlfrontend/Page1.qml	Fri Dec 22 23:59:03 2017 +0100
+++ b/qmlfrontend/Page1.qml	Sun Dec 24 00:44:16 2017 +0100
@@ -1,7 +1,9 @@
 import QtQuick 2.7
+import Hedgewars.Engine 1.0
 
 Page1Form {
   button1.onClicked: {
-    console.log("Button Pressed. Entered text: " + textField1.text);
+    console.log("Button clicked")
+    HWEngine.getPreview()
   }
 }