Qml/Main: connect mousearea clicked signal to card

This commit is contained in:
Toast 2025-06-05 20:19:15 +02:00
parent 8494196ad7
commit 1bf00174a5

View file

@ -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 {