mirror of https://github.com/KDE/kasts.git
show icons in feedlist
This commit is contained in:
parent
ce103c9fc3
commit
03d5b12423
|
@ -18,7 +18,7 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import QtQuick 2.13
|
import QtQuick 2.14
|
||||||
import QtQuick.Controls 2.10 as Controls
|
import QtQuick.Controls 2.10 as Controls
|
||||||
import QtQuick.Layouts 1.12
|
import QtQuick.Layouts 1.12
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
|
|
||||||
header:
|
header:
|
||||||
Kirigami.SwipeListItem {
|
Kirigami.AbstractListItem {
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
text: "All feeds"
|
text: "All feeds"
|
||||||
}
|
}
|
||||||
|
@ -81,27 +81,32 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delegate: Kirigami.SwipeListItem {
|
delegate: Kirigami.AbstractListItem {
|
||||||
Controls.Label {
|
height: Kirigami.Units.gridUnit*2
|
||||||
text: model.feed.name
|
|
||||||
|
Item {
|
||||||
|
height: parent.height
|
||||||
|
|
||||||
|
Kirigami.Icon {
|
||||||
|
id: icon
|
||||||
|
source: model.feed.image
|
||||||
|
width: height
|
||||||
|
height: parent.height
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Controls.Label {
|
||||||
|
text: model.feed.name
|
||||||
|
height: parent.height
|
||||||
|
leftPadding: Kirigami.Units.gridUnit*0.5
|
||||||
|
anchors.left: icon.right
|
||||||
|
}
|
||||||
|
MouseArea {
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: Kirigami.Units.gridUnit * 2
|
height: parent.height
|
||||||
actions: [
|
onClicked: pageStack.push("qrc:/EntryListPage.qml", {feed: model.feed})
|
||||||
Kirigami.Action {
|
}
|
||||||
icon.name: "list-remove"
|
|
||||||
text: "Remove"
|
|
||||||
onTriggered: feedListModel.remove_feed(index)
|
|
||||||
},
|
|
||||||
Kirigami.Action {
|
|
||||||
icon.name: "document-edit"
|
|
||||||
text: "Edit"
|
|
||||||
onTriggered:; //TODO
|
|
||||||
}
|
|
||||||
]
|
|
||||||
onClicked: {
|
|
||||||
pageStack.push("qrc:/EntryListPage.qml", {feed: model.feed})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue