Qml/Main: connect mousearea clicked signal to card
This commit is contained in:
parent
8494196ad7
commit
1bf00174a5
1 changed files with 6 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ Kirigami.ApplicationWindow {
|
|||
component ModCardDelegate: Kirigami.AbstractCard {
|
||||
required property QMod mod
|
||||
|
||||
id: card
|
||||
showClickFeedback: true
|
||||
onClicked: pageStack.push(Qt.resolvedUrl("ModPage.qml"), {
|
||||
mod: mod
|
||||
|
|
@ -87,6 +88,11 @@ Kirigami.ApplicationWindow {
|
|||
id: labelArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
// For some reason I can't connect the pressed signals, so there's no feedback for that
|
||||
// Whoops
|
||||
Component.onCompleted: {
|
||||
clicked.connect(card.clicked)
|
||||
}
|
||||
}
|
||||
}
|
||||
Kirigami.Separator {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue