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 {
|
component ModCardDelegate: Kirigami.AbstractCard {
|
||||||
|
required property int index
|
||||||
required property QMod mod
|
required property QMod mod
|
||||||
|
|
||||||
showClickFeedback: true
|
showClickFeedback: true
|
||||||
onClicked: pageStack.push(Qt.resolvedUrl("ModPage.qml"), {
|
onClicked: pageStack.push(Qt.resolvedUrl("ModPage.qml"), {
|
||||||
mod: mod
|
mod: mod,
|
||||||
|
index: index,
|
||||||
|
model: modsView.model
|
||||||
})
|
})
|
||||||
|
|
||||||
// headerOrientation: Qt.Horizontal
|
// headerOrientation: Qt.Horizontal
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ import Leek
|
||||||
|
|
||||||
Kirigami.Page {
|
Kirigami.Page {
|
||||||
id: root
|
id: root
|
||||||
|
required property QModListModel model
|
||||||
|
required property int index
|
||||||
required property QMod mod
|
required property QMod mod
|
||||||
|
|
||||||
title: "Local mod"
|
title: "Local mod"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue