Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Momomotus
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
Pouchet Pierre
Momomotus
Commits
d06b6431
Commit
d06b6431
authored
3 months ago
by
Pouchet Pierre
Browse files
Options
Downloads
Patches
Plain Diff
Correction taille écran + correction back key
parent
096d011e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Motus/BackKey.qml
+5
-5
5 additions, 5 deletions
Motus/BackKey.qml
Motus/Main.qml
+15
-41
15 additions, 41 deletions
Motus/Main.qml
with
20 additions
and
46 deletions
Motus/BackKey.qml
+
5
−
5
View file @
d06b6431
...
@@ -2,8 +2,8 @@ import QtQuick
...
@@ -2,8 +2,8 @@ import QtQuick
Item
{
Item
{
id
:
_item
id
:
_item
width
:
1
5
0
width
:
1
0
0
height
:
7
0
height
:
6
0
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
:
1
5
0
width
:
1
0
0
height
:
7
0
height
:
6
0
source
:
"
file:///C:/Users/pierr/OneDrive/Documents/GitHub/momomotus/momomotus/Motus/
back_key.png
"
source
:
"
back_key.png
"
fillMode
:
Image
.
PreserveAspectFit
fillMode
:
Image
.
PreserveAspectFit
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Motus/Main.qml
+
15
−
41
View file @
d06b6431
...
@@ -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
:
7
51
x
:
5
7
y
:
4
2
y
:
10
2
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
:
11
75
x
:
11
44
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
:
6
2
3
x
:
11
63
y
:
17
1
y
:
42
1
}
}
Rectangle
{
Rectangle
{
id
:
rectangle1
id
:
rectangle1
x
:
342
x
:
342
y
:
4
06
y
:
4
77
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 {
}
}
}
}
}
}
}
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