From 5c8f8ada116252895ee0e72695a1621e98403b86 Mon Sep 17 00:00:00 2001
From: PierrePouchet <pierre.pouchet@etu.ec-lyon.fr>
Date: Mon, 17 Mar 2025 10:57:46 +0100
Subject: [PATCH] push rapide

---
 Motus/CMakeLists.txt |  4 ++++
 Motus/Case.qml       | 14 ++++++++++++++
 Motus/Main.qml       | 14 ++++++++++++--
 Motus/Ressources.qrc |  5 +++++
 4 files changed, 35 insertions(+), 2 deletions(-)
 create mode 100644 Motus/Ressources.qrc

diff --git a/Motus/CMakeLists.txt b/Motus/CMakeLists.txt
index f0d29eb..17c2360 100644
--- a/Motus/CMakeLists.txt
+++ b/Motus/CMakeLists.txt
@@ -18,6 +18,10 @@ qt_add_qml_module(appMotus
     QML_FILES
         Main.qml
         QML_FILES Case.qml
+        RESOURCES Ressources.qrc
+        QML_FILES Case.qml
+        QML_FILES Case.qml
+        QML_FILES Case.qml
 )
 
 # Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
diff --git a/Motus/Case.qml b/Motus/Case.qml
index 5560aee..d754299 100644
--- a/Motus/Case.qml
+++ b/Motus/Case.qml
@@ -1,5 +1,19 @@
 import QtQuick
 
 Item {
+    width: 90
+    height: 60
+    property alias _textText: _text.text
+    Text {
+        id: _text
+        x: 0
+        y: 0
+        width: 90
+        height: 60
+        text: qsTr("Lettre")
+        font.pixelSize: 24
+        horizontalAlignment: Text.AlignHCenter
+        verticalAlignment: Text.AlignVCenter
+    }
 
 }
diff --git a/Motus/Main.qml b/Motus/Main.qml
index 41424f8..39f8765 100644
--- a/Motus/Main.qml
+++ b/Motus/Main.qml
@@ -1,8 +1,18 @@
 import QtQuick
 
 Window {
-    width: 640
-    height: 480
+    width: 1920
+    height: 1080
     visible: true
     title: qsTr("Hello World")
+
+    Rectangle {
+        id: rectangle
+        x: 0
+        y: 0
+        width: 1920
+        height: 1080
+        color: "#cb4848"
+        focus: true
+    }
 }
diff --git a/Motus/Ressources.qrc b/Motus/Ressources.qrc
new file mode 100644
index 0000000..388ced6
--- /dev/null
+++ b/Motus/Ressources.qrc
@@ -0,0 +1,5 @@
+<RCC>
+    <qresource prefix="/">
+        <file>Case.qml</file>
+    </qresource>
+</RCC>
-- 
GitLab