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

Adaption interface à la langue choisie

parent 59d8c4d4
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ Window {
Choosebutton {
id: choosebutton
anchors.horizontalCenter: parent.horizontalCenter
_textText: "Générer un mot"
_textText: "Generate a word"
Case {
id: case3
x: 131
......@@ -256,8 +256,9 @@ Window {
spacing: 15
Text {
id:text_langue
y: 100
text: qsTr("Language/Langage")
text: "Language"
font.pixelSize: 25
color: "white"
horizontalAlignment: Text.AlignHCenter
......@@ -281,6 +282,11 @@ Window {
motusGame.dictionnaryChoosed = "Motus\\mots_francais_bis.txt";
langageButton2.rectangleColor= "#7a7a7a";
langageButton.rectangleColor= "green";
choosebutton._textText="Générer un mot";
text_langue.text="Langage"
text_choix_nb_lettres.text="Nombre de lettres"
numberLetterBtn.firstItemText="Aléatoire"
}
}
}
......@@ -298,6 +304,11 @@ Window {
motusGame.dictionnaryChoosed = "Motus\\words_alpha.txt";
langageButton2.rectangleColor= "green";
langageButton.rectangleColor= "#7a7a7a";
choosebutton._textText="Generate a word;"
text_langue.text="Language"
text_choix_nb_lettres.text="Number of letters"
numberLetterBtn.firstItemText="Random"
}
}
}
......@@ -321,7 +332,7 @@ Window {
Text {
id: text_choix_nb_lettres
text: qsTr("Nombre de lettres / \n Number of letters")
text: "Number of letters"
font.pixelSize: 22
anchors.horizontalCenter: parent.horizontalCenter
color: "white"
......@@ -329,6 +340,7 @@ Window {
NumberLetterButton {
id: numberLetterBtn
firstItemText: "Random"
width: parent.width
height: 60
......
......@@ -5,13 +5,17 @@ import QtQuick.Layouts 1.15
Item {
width: 240
height: 100
property string firstItemText;
ComboBox {
id: comboBox
anchors.centerIn: parent
width: 250
height: 100
model: ["Aléatoire / Random", "6", "7", "8", "9", "10","11","12"]
model: [firstItemText, "6", "7", "8", "9", "10","11","12"]
flat: true
// Le contenu affiché (texte sélectionné)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment