mirror of
https://github.com/KDE/kasts.git
synced 2024-12-28 09:21:13 +01:00
Use native onClicked in FeedListDelegate
This commit is contained in:
parent
16a5cfbcf9
commit
f91dfda504
@ -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
|
||||
|
@ -105,6 +105,7 @@ Kirigami.ScrollablePage {
|
||||
id: feedsModel
|
||||
}
|
||||
|
||||
|
||||
Component {
|
||||
id: feedListDelegate
|
||||
FeedListDelegate {
|
||||
|
Loading…
Reference in New Issue
Block a user