Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Projet_sudoku
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jolibois Simon
Projet_sudoku
Commits
55df0f1e
Commit
55df0f1e
authored
Mar 22, 2021
by
Poncet Thomas
Browse files
Options
Downloads
Patches
Plain Diff
Fin travail lundi
parent
2d532c75
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
Carre.qml
+22
-5
22 additions, 5 deletions
Carre.qml
Grille.qml
+36
-9
36 additions, 9 deletions
Grille.qml
erase.png
+0
-0
0 additions, 0 deletions
erase.png
main.qml
+28
-1
28 additions, 1 deletion
main.qml
qml.qrc
+1
-0
1 addition, 0 deletions
qml.qrc
with
87 additions
and
15 deletions
Carre.qml
+
22
−
5
View file @
55df0f1e
...
@@ -4,6 +4,16 @@ Item {
...
@@ -4,6 +4,16 @@ Item {
id
:
monCarre
id
:
monCarre
width
:
154
width
:
154
height
:
154
height
:
154
property
alias
case9
:
case9
property
alias
case8
:
case8
property
alias
case7
:
case7
property
alias
case6
:
case6
property
alias
case5
:
case5
property
alias
case4
:
case4
property
alias
case3
:
case3
property
alias
case2
:
case2
property
alias
case1
:
case1
Rectangle
{
Rectangle
{
id
:
backgroudcarre
id
:
backgroudcarre
...
@@ -16,6 +26,7 @@ Item {
...
@@ -16,6 +26,7 @@ Item {
id
:
case1
id
:
case1
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.top
:
parent
.
top
anchors.top
:
parent
.
top
chiffreText
:
qsTr
(
"
9
"
)
anchors.leftMargin
:
2
anchors.leftMargin
:
2
anchors.topMargin
:
2
anchors.topMargin
:
2
}
}
...
@@ -24,6 +35,7 @@ Item {
...
@@ -24,6 +35,7 @@ Item {
id
:
case2
id
:
case2
x
:
50
x
:
50
anchors.top
:
parent
.
top
anchors.top
:
parent
.
top
chiffreText
:
qsTr
(
"
9
"
)
anchors.topMargin
:
2
anchors.topMargin
:
2
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
}
...
@@ -34,6 +46,7 @@ Item {
...
@@ -34,6 +46,7 @@ Item {
y
:
0
y
:
0
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
anchors.top
:
parent
.
top
anchors.top
:
parent
.
top
chiffreText
:
qsTr
(
"
9
"
)
anchors.rightMargin
:
2
anchors.rightMargin
:
2
anchors.topMargin
:
2
anchors.topMargin
:
2
}
}
...
@@ -44,6 +57,7 @@ Item {
...
@@ -44,6 +57,7 @@ Item {
y
:
50
y
:
50
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
chiffreText
:
qsTr
(
"
9
"
)
anchors.leftMargin
:
2
anchors.leftMargin
:
2
}
}
...
@@ -52,21 +66,23 @@ Item {
...
@@ -52,21 +66,23 @@ Item {
x
:
50
x
:
50
y
:
50
y
:
50
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
chiffreText
:
"
9
"
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
}
Case
{
Case
{
id
:
case6
id
:
case6
x
:
122
x
:
0
y
:
83
y
:
102
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
chiffreText
:
qsTr
(
"
9
"
)
anchors.rightMargin
:
2
anchors.rightMargin
:
2
}
}
Case
{
Case
{
id
:
case7
id
:
case7
y
:
106
y
:
106
...
@@ -95,6 +111,7 @@ Item {
...
@@ -95,6 +111,7 @@ Item {
anchors.bottomMargin
:
2
anchors.bottomMargin
:
2
anchors.rightMargin
:
2
anchors.rightMargin
:
2
}
}
}
}
}
}
This diff is collapsed.
Click to expand it.
Grille.qml
+
36
−
9
View file @
55df0f1e
...
@@ -4,6 +4,15 @@ Item {
...
@@ -4,6 +4,15 @@ Item {
id
:
maGrille
id
:
maGrille
width
:
466
width
:
466
height
:
466
height
:
466
property
alias
carre9
:
carre9
property
alias
carre8
:
carre8
property
alias
carre7
:
carre7
property
alias
carre6
:
carre6
property
alias
carre5
:
carre5
property
alias
carre4
:
carre4
property
alias
carre3
:
carre3
property
alias
carre2
:
carre2
property
alias
carre1
:
carre1
Rectangle
{
Rectangle
{
id
:
backgroundGrille
id
:
backgroundGrille
...
@@ -12,23 +21,41 @@ Item {
...
@@ -12,23 +21,41 @@ Item {
anchors.fill
:
parent
anchors.fill
:
parent
Carre
{
Carre
{
id
:
carre
id
:
carre
1
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.top
:
parent
.
top
anchors.top
:
parent
.
top
case9.chiffreText
:
qsTr
(
"
9
"
)
case8.chiffreText
:
qsTr
(
"
9
"
)
case7.chiffreText
:
qsTr
(
"
9
"
)
case6.chiffreText
:
qsTr
(
"
9
"
)
case5.chiffreText
:
qsTr
(
"
9
"
)
case4.chiffreText
:
qsTr
(
"
9
"
)
case3.chiffreText
:
qsTr
(
"
9
"
)
case2.chiffreText
:
qsTr
(
"
9
"
)
case1.chiffreText
:
qsTr
(
"
9
"
)
anchors.leftMargin
:
2
anchors.leftMargin
:
2
anchors.topMargin
:
2
anchors.topMargin
:
2
}
}
Carre
{
Carre
{
id
:
carre
1
id
:
carre
2
x
:
178
x
:
178
anchors.top
:
parent
.
top
anchors.top
:
parent
.
top
case9.chiffreText
:
qsTr
(
""
)
case8.chiffreText
:
qsTr
(
""
)
case7.chiffreText
:
qsTr
(
""
)
case6.chiffreText
:
qsTr
(
""
)
case5.chiffreText
:
qsTr
(
""
)
case4.chiffreText
:
qsTr
(
""
)
case3.chiffreText
:
qsTr
(
""
)
case2.chiffreText
:
qsTr
(
""
)
case1.chiffreText
:
qsTr
(
"
9
"
)
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.topMargin
:
2
anchors.topMargin
:
2
}
}
Carre
{
Carre
{
id
:
carre
2
id
:
carre
3
x
:
347
x
:
347
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
anchors.top
:
parent
.
top
anchors.top
:
parent
.
top
...
@@ -37,7 +64,7 @@ Item {
...
@@ -37,7 +64,7 @@ Item {
}
}
Carre
{
Carre
{
id
:
carre
3
id
:
carre
4
y
:
191
y
:
191
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
...
@@ -45,7 +72,7 @@ Item {
...
@@ -45,7 +72,7 @@ Item {
}
}
Carre
{
Carre
{
id
:
carre
4
id
:
carre
5
x
:
279
x
:
279
y
:
219
y
:
219
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
...
@@ -53,7 +80,7 @@ Item {
...
@@ -53,7 +80,7 @@ Item {
}
}
Carre
{
Carre
{
id
:
carre
5
id
:
carre
6
x
:
361
x
:
361
y
:
199
y
:
199
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
...
@@ -62,7 +89,7 @@ Item {
...
@@ -62,7 +89,7 @@ Item {
}
}
Carre
{
Carre
{
id
:
carre
6
id
:
carre
7
y
:
338
y
:
338
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
...
@@ -71,7 +98,7 @@ Item {
...
@@ -71,7 +98,7 @@ Item {
}
}
Carre
{
Carre
{
id
:
carre
7
id
:
carre
8
x
:
225
x
:
225
y
:
330
y
:
330
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
...
@@ -80,7 +107,7 @@ Item {
...
@@ -80,7 +107,7 @@ Item {
}
}
Carre
{
Carre
{
id
:
carre
8
id
:
carre
9
x
:
316
x
:
316
y
:
316
y
:
316
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
...
...
This diff is collapsed.
Click to expand it.
erase.png
0 → 100644
+
0
−
0
View file @
55df0f1e
7.39 KiB
This diff is collapsed.
Click to expand it.
main.qml
+
28
−
1
View file @
55df0f1e
...
@@ -12,6 +12,13 @@ Window {
...
@@ -12,6 +12,13 @@ Window {
color
:
"
#eae1c3
"
color
:
"
#eae1c3
"
anchors.fill
:
parent
anchors.fill
:
parent
focus
:
true
focus
:
true
Keys.onPressed
:
{
switch
(
event
.
key
)
{
case
Qt
.
Key_A
:
grille
.
carre4
.
case2
.
chiffreText
=
qsTr
(
"
0
"
)
break
;
}
}
Grille
{
Grille
{
id
:
grille
id
:
grille
...
@@ -38,6 +45,7 @@ Window {
...
@@ -38,6 +45,7 @@ Window {
x
:
425
x
:
425
y
:
620
y
:
620
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
chiffreText
:
"
6
"
anchors.horizontalCenterOffset
:
30
anchors.horizontalCenterOffset
:
30
anchors.bottomMargin
:
30
anchors.bottomMargin
:
30
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
@@ -48,6 +56,7 @@ Window {
...
@@ -48,6 +56,7 @@ Window {
x
:
392
x
:
392
y
:
620
y
:
620
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
chiffreText
:
"
5
"
anchors.horizontalCenterOffset
:
-
30
anchors.horizontalCenterOffset
:
-
30
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.bottomMargin
:
30
anchors.bottomMargin
:
30
...
@@ -58,6 +67,7 @@ Window {
...
@@ -58,6 +67,7 @@ Window {
x
:
331
x
:
331
y
:
620
y
:
620
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
chiffreText
:
"
4
"
anchors.horizontalCenterOffset
:
-
90
anchors.horizontalCenterOffset
:
-
90
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.bottomMargin
:
30
anchors.bottomMargin
:
30
...
@@ -68,6 +78,7 @@ Window {
...
@@ -68,6 +78,7 @@ Window {
x
:
266
x
:
266
y
:
620
y
:
620
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
chiffreText
:
"
3
"
anchors.horizontalCenterOffset
:
-
150
anchors.horizontalCenterOffset
:
-
150
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.bottomMargin
:
30
anchors.bottomMargin
:
30
...
@@ -78,6 +89,7 @@ Window {
...
@@ -78,6 +89,7 @@ Window {
x
:
201
x
:
201
y
:
620
y
:
620
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
chiffreText
:
"
2
"
anchors.horizontalCenterOffset
:
-
210
anchors.horizontalCenterOffset
:
-
210
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.bottomMargin
:
30
anchors.bottomMargin
:
30
...
@@ -88,6 +100,7 @@ Window {
...
@@ -88,6 +100,7 @@ Window {
x
:
98
x
:
98
y
:
627
y
:
627
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
chiffreText
:
"
1
"
anchors.horizontalCenterOffset
:
-
270
anchors.horizontalCenterOffset
:
-
270
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.bottomMargin
:
30
anchors.bottomMargin
:
30
...
@@ -98,6 +111,7 @@ Window {
...
@@ -98,6 +111,7 @@ Window {
x
:
545
x
:
545
y
:
627
y
:
627
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
chiffreText
:
"
7
"
anchors.horizontalCenterOffset
:
90
anchors.horizontalCenterOffset
:
90
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.bottomMargin
:
30
anchors.bottomMargin
:
30
...
@@ -108,6 +122,7 @@ Window {
...
@@ -108,6 +122,7 @@ Window {
x
:
621
x
:
621
y
:
627
y
:
627
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
chiffreText
:
"
8
"
anchors.horizontalCenterOffset
:
150
anchors.horizontalCenterOffset
:
150
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.bottomMargin
:
30
anchors.bottomMargin
:
30
...
@@ -128,10 +143,22 @@ Window {
...
@@ -128,10 +143,22 @@ Window {
x
:
781
x
:
781
y
:
620
y
:
620
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
chiffreText
:
"
"
anchors.horizontalCenterOffset
:
270
anchors.horizontalCenterOffset
:
270
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.bottomMargin
:
30
anchors.bottomMargin
:
30
}
Image
{
id
:
gomme
anchors.fill
:
parent
source
:
"
erase.png
"
anchors.rightMargin
:
2
anchors.leftMargin
:
2
anchors.bottomMargin
:
2
anchors.topMargin
:
2
fillMode
:
Image
.
PreserveAspectFit
}
}
}
}
}
}
This diff is collapsed.
Click to expand it.
qml.qrc
+
1
−
0
View file @
55df0f1e
...
@@ -4,5 +4,6 @@
...
@@ -4,5 +4,6 @@
<file>Case.qml</file>
<file>Case.qml</file>
<file>Grille.qml</file>
<file>Grille.qml</file>
<file>Carre.qml</file>
<file>Carre.qml</file>
<file>erase.png</file>
</qresource>
</qresource>
</RCC>
</RCC>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment