Skip to content
Snippets Groups Projects
Commit d06b6431 authored by Pouchet Pierre's avatar Pouchet Pierre
Browse files

Correction taille écran + correction back key

parent 096d011e
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,8 @@ import QtQuick ...@@ -2,8 +2,8 @@ import QtQuick
Item { Item {
id: _item id: _item
width: 150 width: 100
height: 70 height: 60
property alias imageSource: image.source property alias imageSource: image.source
Rectangle { Rectangle {
id: rectangle id: rectangle
...@@ -15,9 +15,9 @@ Item { ...@@ -15,9 +15,9 @@ Item {
id: image id: image
x: 0 x: 0
y: 0 y: 0
width: 150 width: 100
height: 70 height: 60
source: "file:///C:/Users/pierr/OneDrive/Documents/GitHub/momomotus/momomotus/Motus/back_key.png" source: "back_key.png"
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
} }
} }
......
...@@ -2,7 +2,7 @@ import QtQuick ...@@ -2,7 +2,7 @@ import QtQuick
Window { Window {
width: Screen.width width: Screen.width
height: 1080 height: Screen.height
visible: true visible: true
visibility: Window.Maximized visibility: Window.Maximized
title: qsTr("Hello World") title: qsTr("Hello World")
...@@ -12,48 +12,24 @@ Window { ...@@ -12,48 +12,24 @@ Window {
x: 0 x: 0
y: 0 y: 0
width: Screen.width width: Screen.width
height: 1080 height: Screen.height
color: "#323232" color: "#323232"
focus: true 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 { Choosebutton {
id: choosebutton id: choosebutton
x: 751 x: 57
y: 42 y: 102
buttonText: "Générer un mot" buttonText: "Générer un mot"
Case {
id: case3
_textText: "mot test"
}
Keys.onPressed: (event) => { Keys.onPressed: (event) => {
...@@ -81,8 +57,8 @@ Window { ...@@ -81,8 +57,8 @@ Window {
Rectangle { Rectangle {
id: rectangle2 id: rectangle2
x: 1175 x: 1144
y: 241 y: 89
width: 265 width: 265
height: 286 height: 286
color: "#ffffff" color: "#ffffff"
...@@ -133,22 +109,22 @@ Window { ...@@ -133,22 +109,22 @@ Window {
NumberLetterButton { NumberLetterButton {
id: numberLetterButton id: numberLetterButton
x: 623 x: 1163
y: 171 y: 421
} }
Rectangle { Rectangle {
id: rectangle1 id: rectangle1
x: 342 x: 342
y: 406 y: 477
width: 640 width: 640
height: 280 height: 280
color: "#323232" color: "#323232"
radius: 10 radius: 10
border.color: "#ffffff" border.color: "#ffffff"
border.width: 5 border.width: 5
anchors.horizontalCenterOffset: -126 anchors.horizontalCenterOffset: -27
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
Column { Column {
...@@ -454,8 +430,6 @@ Window { ...@@ -454,8 +430,6 @@ Window {
BackKey { BackKey {
id: backKey id: backKey
width: 100
height: 60
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
...@@ -463,4 +437,4 @@ Window { ...@@ -463,4 +437,4 @@ Window {
} }
} }
} }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment