Skip to content
Snippets Groups Projects
Commit 4e61b225 authored by Jolibois Simon's avatar Jolibois Simon
Browse files

nettoyage du code et ajout de commentaires

parent 27540686
No related branches found
No related tags found
No related merge requests found
......@@ -63,8 +63,11 @@ Item {
Grid{
id : grid
x: 3; y:3
rows:3; columns:3; spacing :2
x : 3
y : 3
rows : 3
columns : 3
spacing : 2
Repeater{ id : repeater1
......@@ -79,18 +82,16 @@ Item {
TextInput{
id : input
color:'#333333'
readOnly : false
width : parent.width
height : parent.height
horizontalAlignment : Text.AlignHCenter
verticalAlignment : Text.AlignVCenter
readOnly: false
font.pointSize : 24
maximumLength : 1
color :'#333333'
validator : RegExpValidator { regExp: /[1-9]+/ }
onFocusChanged: {
changer_couleur(this, focus)
}
onFocusChanged : {changer_couleur(this, focus)}
onTextEdited : envoyer_valeur(this)
}
}
......
......@@ -4,9 +4,9 @@ import QtQuick.Layouts 1.1
import QtQuick.Controls 2.15
Window {
visible: true
width: 700
height: 200
visible: true
title: qsTr("Résultat")
property alias rectangle : rectangle
......@@ -19,12 +19,12 @@ Window {
Text {
id: text1
text: "Text"
anchors.fill: parent
font.pixelSize: 30
font.family: "Tahoma"
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
font.pointSize: 16
font.family: "Tahoma"
}
}
}
......@@ -5,11 +5,11 @@ import QtQuick.Controls 2.15
Window {
id : root
color: "#e6ecfa"
width: 655
height: 717
visible: true
title: qsTr("Sudoku")
color: "#e6ecfa"
function check(){
vueObjetCpt.verif_matrice();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment