qmlfrontend/Page1Form.ui.qml
changeset 16041 caba603f461f
parent 16039 a73b9770467a
--- a/qmlfrontend/Page1Form.ui.qml	Fri Apr 19 17:45:05 2024 +0200
+++ b/qmlfrontend/Page1Form.ui.qml	Wed May 01 16:49:16 2024 +0200
@@ -1,6 +1,6 @@
-import QtQuick 2.7
-import QtQuick.Controls 2.0
-import QtQuick.Layouts 1.3
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
 
 import Hedgewars.Engine 1.0
 
@@ -8,12 +8,12 @@
   id: element
   property alias button1: button1
   property alias previewImage: previewImage
+  property alias preview: preview
   property alias gameButton: gameButton
-  width: 1024
-  height: 800
   property alias netButton: netButton
   property alias tickButton: tickButton
   property alias gameView: gameView
+  property alias gameMouseArea: gameMouseArea
 
   ColumnLayout {
     anchors.fill: parent
@@ -39,6 +39,7 @@
     }
 
     Rectangle {
+      id: preview
       border.color: "orange"
       border.width: 5
       radius: 5
@@ -83,7 +84,10 @@
       Layout.fillHeight: true
 
       MouseArea {
+        id: gameMouseArea
         anchors.fill: parent
+
+        property point lastPoint
       }
     }
   }