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 {
...
@@ -80,9 +80,9 @@ Rectangle {
model
:
core_app
.
games
model
:
core_app
.
games
Game
{
Game
{
t
itle
:
model
.
name
gameT
itle
:
model
.
name
e
xec
:
model
.
exec
gameE
xec
:
model
.
exec
i
con
:
model
.
icon
gameI
con
:
model
.
icon
width
:
256
width
:
256
height
:
256
height
:
256
...
@@ -151,3 +151,9 @@ Rectangle {
...
@@ -151,3 +151,9 @@ Rectangle {
}
}
/*##^##
Designer {
D{i:0}D{i:1;invisible:true}
}
##^##*/
qml/delegates/Game.qml
View file @
b07b7b0b
import
QtQuick
import
QtQuick
import
"../constants/scene.js"
as
SceneConstants
import
"../constants/scene.js"
as
SceneConstants
import
"../components/"
as
C
Rectangle
{
C.Button
{
property
string
t
itle
:
"Generic title"
property
string
gameT
itle
:
"Generic title"
property
string
i
con
:
""
property
string
gameI
con
:
""
property
string
e
xec
:
""
property
string
gameE
xec
:
""
id
:
game
id
:
game
width
:
256
width
:
256
height
:
256
height
:
256
color
:
"#efefef"
implicitWidth
:
256
radius
:
5
implicitHeight
:
256
border.width
:
1
text
:
""
// color: "#efefef"
MouseArea
{
//radius: 5
anchors.fill
:
parent
// border.width: 1
onClicked
:
function
(){
onClicked
:
function
(){
// console.log(game.title);
// console.log(game.title);
gameInfoScene
.
title
=
game
.
title
;
gameInfoScene
.
title
=
game
.
gameTitle
;
gameInfoScene
.
icon
=
game
.
icon
;
gameInfoScene
.
icon
=
game
.
gameIcon
;
gameInfoScene
.
exec
=
game
.
exec
;
gameInfoScene
.
exec
=
game
.
gameExec
;
window
.
scene
=
SceneConstants
.
gameInfoScene
;
window
.
scene
=
SceneConstants
.
gameInfoScene
;
}
}
}
Image
{
Image
{
...
@@ -32,7 +32,7 @@ Rectangle {
...
@@ -32,7 +32,7 @@ Rectangle {
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
anchors.top
:
parent
.
top
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
source
:
game
.
i
con
source
:
game
.
gameI
con
anchors.rightMargin
:
8
anchors.rightMargin
:
8
anchors.bottomMargin
:
47
anchors.bottomMargin
:
47
anchors.leftMargin
:
8
anchors.leftMargin
:
8
...
@@ -44,7 +44,7 @@ Rectangle {
...
@@ -44,7 +44,7 @@ Rectangle {
id
:
title
id
:
title
y
:
439
y
:
439
height
:
33
height
:
33
text
:
game
.
t
itle
text
:
game
.
gameT
itle
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
anchors.bottom
:
parent
.
bottom
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