Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ingame
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
ingame
Commits
b07b7b0b
Commit
b07b7b0b
authored
Apr 07, 2024
by
Georgiy Yankovskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Game icon component: rectangle -> button replacement
parent
f1562ea5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
24 deletions
+30
-24
Tabs.qml
qml/components/Tabs.qml
+9
-3
Game.qml
qml/delegates/Game.qml
+21
-21
No files found.
qml/components/Tabs.qml
View file @
b07b7b0b
...
...
@@ -80,9 +80,9 @@ Rectangle {
model
:
core_app
.
games
Game
{
t
itle
:
model
.
name
e
xec
:
model
.
exec
i
con
:
model
.
icon
gameT
itle
:
model
.
name
gameE
xec
:
model
.
exec
gameI
con
:
model
.
icon
width
:
256
height
:
256
...
...
@@ -151,3 +151,9 @@ Rectangle {
}
/*##^##
Designer {
D{i:0}D{i:1;invisible:true}
}
##^##*/
qml/delegates/Game.qml
View file @
b07b7b0b
import
QtQuick
import
"../constants/scene.js"
as
SceneConstants
import
"../components/"
as
C
Rectangle
{
property
string
t
itle
:
"Generic title"
property
string
i
con
:
""
property
string
e
xec
:
""
C.Button
{
property
string
gameT
itle
:
"Generic title"
property
string
gameI
con
:
""
property
string
gameE
xec
:
""
id
:
game
width
:
256
height
:
256
color
:
"#efefef"
radius
:
5
border.width
:
1
MouseArea
{
anchors.fill
:
parent
onClicked
:
function
(){
// console.log(game.title);
gameInfoScene
.
title
=
game
.
title
;
gameInfoScene
.
icon
=
game
.
icon
;
gameInfoScene
.
exec
=
game
.
exec
;
window
.
scene
=
SceneConstants
.
gameInfoScene
;
}
implicitWidth
:
256
implicitHeight
:
256
text
:
""
// color: "#efefef"
//radius: 5
// border.width: 1
onClicked
:
function
(){
// console.log(game.title);
gameInfoScene
.
title
=
game
.
gameTitle
;
gameInfoScene
.
icon
=
game
.
gameIcon
;
gameInfoScene
.
exec
=
game
.
gameExec
;
window
.
scene
=
SceneConstants
.
gameInfoScene
;
}
Image
{
...
...
@@ -32,7 +32,7 @@ Rectangle {
anchors.right
:
parent
.
right
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
source
:
game
.
i
con
source
:
game
.
gameI
con
anchors.rightMargin
:
8
anchors.bottomMargin
:
47
anchors.leftMargin
:
8
...
...
@@ -44,7 +44,7 @@ Rectangle {
id
:
title
y
:
439
height
:
33
text
:
game
.
t
itle
text
:
game
.
gameT
itle
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.bottom
:
parent
.
bottom
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment