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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pouchet Pierre
Momomotus
Commits
626036c3
Commit
626036c3
authored
2 months ago
by
Pouchet Pierre
Browse files
Options
Downloads
Patches
Plain Diff
Changement chemins vers chemins absolus (temporaire)
parent
b32681d8
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
Motus/BackKey.qml
+9
-9
9 additions, 9 deletions
Motus/BackKey.qml
Motus/Main.qml
+4
-10
4 additions, 10 deletions
Motus/Main.qml
Motus/main.cpp
+3
-0
3 additions, 0 deletions
Motus/main.cpp
Motus/wordchooser.cpp
+1
-1
1 addition, 1 deletion
Motus/wordchooser.cpp
test.docx
+0
-0
0 additions, 0 deletions
test.docx
with
17 additions
and
20 deletions
Motus/BackKey.qml
+
9
−
9
View file @
626036c3
...
...
@@ -10,15 +10,15 @@ Item {
color
:
"
#7a7a7a
"
radius
:
15
anchors.fill
:
parent
}
Image
{
id
:
image
width
:
10
0
height
:
3
0
anchors.verticalCenter
:
parent
.
verticalCenter
source
:
"
qrc:/back_key.png
"
anchors.horizontalCenter
:
parent
.
horizontalCenter
x
:
0
y
:
0
width
:
150
height
:
70
source
:
"
file:///C:/Users/pierr/OneDrive/Documents/GitHub/momomotus/momomotus/Motus/back_key.png
"
fillMode
:
Image
.
PreserveAspectFit
}
}
}
This diff is collapsed.
Click to expand it.
Motus/Main.qml
+
4
−
10
View file @
626036c3
...
...
@@ -79,24 +79,18 @@ Window {
Image
{
id
:
testImage
source
:
"
qrc:/back_key.png
"
width
:
100
height
:
100
anchors.left
:
parent
.
left
anchors.top
:
parent
.
top
}
Rectangle
{
id
:
rectangle1
y
:
666
y
:
465
width
:
640
height
:
280
color
:
"
#323232
"
radius
:
10
border.color
:
"
#ffffff
"
border.width
:
5
anchors.horizontalCenterOffset
:
38
anchors.horizontalCenter
:
parent
.
horizontalCenter
Column
{
...
...
@@ -405,7 +399,7 @@ Window {
width
:
100
height
:
60
anchors.verticalCenter
:
parent
.
verticalCenter
imageSource
:
"
qrc:/back_key.png
"
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Motus/main.cpp
+
3
−
0
View file @
626036c3
...
...
@@ -2,9 +2,12 @@
#include
<QQmlApplicationEngine>
#include
<QQmlContext>
#include
"WordChooser.h"
#include
<Qfile>
int
main
(
int
argc
,
char
*
argv
[])
{
QFile
file
(
":/words_alpha.txt"
);
QGuiApplication
app
(
argc
,
argv
);
QQmlApplicationEngine
engine
;
...
...
This diff is collapsed.
Click to expand it.
Motus/wordchooser.cpp
+
1
−
1
View file @
626036c3
...
...
@@ -12,7 +12,7 @@ WordChooser::WordChooser(QObject *parent) : QObject(parent) {
}
void
WordChooser
::
loadWords
()
{
QFile
file
(
"
:/
words_alpha.txt"
);
// ✅ fonctionne avec le .qrc
QFile
file
(
"
C:
\\
Users
\\
pierr
\\
OneDrive
\\
Documents
\\
GitHub
\\
momomotus
\\
momomotus
\\
Motus
\\
words_alpha.txt"
);
// ✅ fonctionne avec le .qrc
if
(
file
.
open
(
QIODevice
::
ReadOnly
|
QIODevice
::
Text
))
{
QTextStream
in
(
&
file
);
while
(
!
in
.
atEnd
())
{
...
...
This diff is collapsed.
Click to expand it.
test.docx
deleted
100644 → 0
+
0
−
0
View file @
b32681d8
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