Qml/ModPage: get model and index from mod
This commit is contained in:
parent
3024eb9a3d
commit
5baa7840de
2 changed files with 6 additions and 1 deletions
|
|
@ -34,11 +34,14 @@ Kirigami.ApplicationWindow {
|
|||
}
|
||||
|
||||
component ModCardDelegate: Kirigami.AbstractCard {
|
||||
required property int index
|
||||
required property QMod mod
|
||||
|
||||
showClickFeedback: true
|
||||
onClicked: pageStack.push(Qt.resolvedUrl("ModPage.qml"), {
|
||||
mod: mod
|
||||
mod: mod,
|
||||
index: index,
|
||||
model: modsView.model
|
||||
})
|
||||
|
||||
// headerOrientation: Qt.Horizontal
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ import Leek
|
|||
|
||||
Kirigami.Page {
|
||||
id: root
|
||||
required property QModListModel model
|
||||
required property int index
|
||||
required property QMod mod
|
||||
|
||||
title: "Local mod"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue