qmlfrontend/Page1.qml
changeset 15238 b32c52c76977
parent 14936 a3ad06ac390e
child 15919 d52f5d8e75e6
--- a/qmlfrontend/Page1.qml	Fri Jul 05 23:40:03 2019 +0300
+++ b/qmlfrontend/Page1.qml	Sat Jul 06 00:31:54 2019 +0200
@@ -57,13 +57,11 @@
 
   Keys.onPressed: {
     if (event.key === Qt.Key_Enter)
-      gameView.engineInstance.longEvent(EngineInstance.Attack,
-                                        EngineInstance.Set)
+      gameView.engineInstance.longEvent(Engine.Attack, Engine.Set)
   }
 
   Keys.onReleased: {
     if (event.key === Qt.Key_Enter)
-      gameView.engineInstance.longEvent(EngineInstance.Attack,
-                                        EngineInstance.Unset)
+      gameView.engineInstance.longEvent(Engine.Attack, Engine.Unset)
   }
 }