From d06b64314bfe1bbedfa672c5578606d6710bbbce Mon Sep 17 00:00:00 2001 From: ppouchet <pierre.pouchet@etu.ec-lyon.fr> Date: Wed, 26 Mar 2025 21:24:01 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20taille=20=C3=A9cran=20+=20correcti?= =?UTF-8?q?on=20back=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Motus/BackKey.qml | 10 ++++----- Motus/Main.qml | 56 +++++++++++++---------------------------------- 2 files changed, 20 insertions(+), 46 deletions(-) diff --git a/Motus/BackKey.qml b/Motus/BackKey.qml index e865df2..c9e0784 100644 --- a/Motus/BackKey.qml +++ b/Motus/BackKey.qml @@ -2,8 +2,8 @@ import QtQuick Item { id: _item - width: 150 - height: 70 + width: 100 + height: 60 property alias imageSource: image.source Rectangle { id: rectangle @@ -15,9 +15,9 @@ Item { id: image x: 0 y: 0 - width: 150 - height: 70 - source: "file:///C:/Users/pierr/OneDrive/Documents/GitHub/momomotus/momomotus/Motus/back_key.png" + width: 100 + height: 60 + source: "back_key.png" fillMode: Image.PreserveAspectFit } } diff --git a/Motus/Main.qml b/Motus/Main.qml index 8e7b8c9..1eafbac 100644 --- a/Motus/Main.qml +++ b/Motus/Main.qml @@ -2,7 +2,7 @@ import QtQuick Window { width: Screen.width - height: 1080 + height: Screen.height visible: true visibility: Window.Maximized title: qsTr("Hello World") @@ -12,48 +12,24 @@ Window { x: 0 y: 0 width: Screen.width - height: 1080 + height: Screen.height color: "#323232" focus: true - Bouton { - id: bouton - x: 63 - y: 56 - _textText: "Générer un mot" - MouseArea { - id: mouseArea - x: 0 - y: 0 - width: 400 - height: 200 - onClicked: { - let mot = motusGame.getRandomWord(); - console.log("Mot choisi :", mot); - case3._textText = mot; - onClicked: case3._textColor="#51c3e1"; - } - - - Case { - id: case3 - _textText: "test" - } - } } Choosebutton { id: choosebutton - x: 751 - y: 42 + x: 57 + y: 102 buttonText: "Générer un mot" - - - - + Case { + id: case3 + _textText: "mot test" + } Keys.onPressed: (event) => { @@ -81,8 +57,8 @@ Window { Rectangle { id: rectangle2 - x: 1175 - y: 241 + x: 1144 + y: 89 width: 265 height: 286 color: "#ffffff" @@ -133,22 +109,22 @@ Window { NumberLetterButton { id: numberLetterButton - x: 623 - y: 171 + x: 1163 + y: 421 } Rectangle { id: rectangle1 x: 342 - y: 406 + y: 477 width: 640 height: 280 color: "#323232" radius: 10 border.color: "#ffffff" border.width: 5 - anchors.horizontalCenterOffset: -126 + anchors.horizontalCenterOffset: -27 anchors.horizontalCenter: parent.horizontalCenter Column { @@ -454,8 +430,6 @@ Window { BackKey { id: backKey - width: 100 - height: 60 anchors.verticalCenter: parent.verticalCenter } @@ -463,4 +437,4 @@ Window { } } } -} + -- GitLab