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

Design + traitement dictionnaire français

parent d06b6431
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ Item { ...@@ -5,6 +5,7 @@ Item {
property alias buttonText: button.text property alias buttonText: button.text
width: 300 width: 300
height: 200 height: 200
Rectangle { Rectangle {
id: rectangle id: rectangle
x: 0 x: 0
......
...@@ -4,13 +4,20 @@ Item { ...@@ -4,13 +4,20 @@ Item {
width: 200 width: 200
height: 100 height: 100
property alias _textText: _text.text property alias _textText: _text.text
Rectangle { Rectangle {
id: rectangle id: rectangle
x: 0 x: 0
y: 0 y: 0
width: 200 width: 200
height: 100 height: 100
color: "#b43737" color: "#7a7a7a"
radius: 10
border.color: "#ffffff"
border.width: 5
Text { Text {
id: _text id: _text
...@@ -18,10 +25,12 @@ Item { ...@@ -18,10 +25,12 @@ Item {
y: 0 y: 0
width: 200 width: 200
height: 100 height: 100
color: "#ffffff"
text: qsTr("Langage") text: qsTr("Langage")
font.pixelSize: 30 font.pixelSize: 30
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
font.family: "Tahoma"
} }
} }
......
...@@ -55,52 +55,6 @@ Window { ...@@ -55,52 +55,6 @@ Window {
} }
} }
Rectangle {
id: rectangle2
x: 1144
y: 89
width: 265
height: 286
color: "#ffffff"
LangageButton {
id: langageButton
x: 33
y: 32
_textText: "Français"
MouseArea {
id: mouseArea2
x: 0
y: 0
width: 200
height: 100
onClicked: motusGame.dictionnaryChoosed="Motus\\mots_francais.txt"
}
}
LangageButton {
id: langageButton1
x: 33
y: 160
_textText: "English"
MouseArea {
id: mouseArea3
x: 0
y: 0
width: 200
height: 100
onClicked: motusGame.dictionnaryChoosed="Motus\\words_alpha.txt"
}
}
}
MotusTimer { MotusTimer {
id: motusTimer id: motusTimer
x: 498 x: 498
...@@ -109,8 +63,8 @@ Window { ...@@ -109,8 +63,8 @@ Window {
NumberLetterButton { NumberLetterButton {
id: numberLetterButton id: numberLetterButton
x: 1163 x: 1165
y: 421 y: 299
} }
...@@ -435,6 +389,86 @@ Window { ...@@ -435,6 +389,86 @@ Window {
} }
} }
} }
Rectangle{
id: big_rectangle_langue
x: -360
y: -107
width: 270
height: 340
color: "#7a7a7a"
radius: 10
border.color: "#ffffff"
border.width: 5
Rectangle {
id: rectangle_langue
x: 100
y: 60
width: 270
height: 280
color: "#323232"
radius: 10
border.color: "#ffffff"
border.width: 5
anchors.horizontalCenterOffset: 0
anchors.horizontalCenter: parent.horizontalCenter
LangageButton {
id: langageButton
x: 33
y: 32
_textText: "Français"
MouseArea {
id: mouseArea2
x: 0
y: 0
width: 200
height: 100
cursorShape: Qt.PointingHandCursor
onClicked: motusGame.dictionnaryChoosed="Motus\\mots_francais.txt"
}
}
LangageButton {
id: langageButton1
x: 33
y: 160
_textText: "English"
MouseArea {
id: mouseArea3
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: motusGame.dictionnaryChoosed="Motus\\words_alpha.txt"
}
}
}
Text {
id: _text
x: 0
y: 0
width: 270
height: 63
color: "#ffffff"
text: qsTr("Language/Langage")
font.pixelSize: 30
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
font.family: "Tahoma"
}
}
} }
} }
...@@ -21,8 +21,8 @@ Item { ...@@ -21,8 +21,8 @@ Item {
width: 100 width: 100
height: 50 height: 50
flat: true flat: true
editable: true editable: false
model: ["aléatoire","5","6","7","8","9","10"] model: ["Aléatoire / Random","5","6","7","8","9","10"]
displayText: "Number of letters" displayText: "Number of letters"
onCurrentTextChanged: { onCurrentTextChanged: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment