Use native onClicked in FeedListDelegate

This commit is contained in:
Bart De Vries 2021-04-29 13:45:04 +02:00
parent 16a5cfbcf9
commit f91dfda504
2 changed files with 6 additions and 8 deletions

View File

@ -25,6 +25,11 @@ Controls.ItemDelegate {
implicitWidth: cardSize + 2 * cardMargin
implicitHeight: cardSize + 2 * cardMargin
onClicked: {
lastFeed = feed.url
pageStack.push("qrc:/EntryListPage.qml", {"feed": feed})
}
background: Kirigami.ShadowedRectangle {
anchors.fill: parent
anchors.margins: cardMargin
@ -99,14 +104,6 @@ Controls.ItemDelegate {
}
}
MouseArea {
anchors.fill: img
onClicked: {
lastFeed = feed.url
pageStack.push("qrc:/EntryListPage.qml", {"feed": feed})
}
}
Rectangle {
id: countRectangle
visible: feed.unreadEntryCount > 0

View File

@ -105,6 +105,7 @@ Kirigami.ScrollablePage {
id: feedsModel
}
Component {
id: feedListDelegate
FeedListDelegate {