separated game card into it's own .qml
This commit is contained in:
+2
-5
@@ -222,13 +222,10 @@ QtObject {
|
||||
gamesList.scrollTo(gamesList.snappedContentX(gamesList.contentX))
|
||||
}
|
||||
|
||||
delegate: Rectangle { // TODO: design a real game card QML to replace this placeholder
|
||||
delegate: GameCard {
|
||||
id: gameTile
|
||||
|
||||
width: 120
|
||||
height: 180
|
||||
|
||||
color: navigationManager.currentItem === gameTile ? "blue" : "white"
|
||||
highlighted: navigationManager.currentItem === gameTile
|
||||
|
||||
function onNavigationFocused() {
|
||||
gamesList.currentIndex = index
|
||||
|
||||
Reference in New Issue
Block a user