More qml cleanup

This commit is contained in:
Tobias Fella 2020-06-01 00:15:14 +02:00
parent 9e1e637030
commit a0c871f145

View File

@ -56,27 +56,27 @@ Kirigami.ScrollablePage {
}
Kirigami.OverlaySheet {
id: addSheet
header: Kirigami.Heading {
text: i18n("Add new Feed")
}
id: addSheet
header: Kirigami.Heading {
text: i18n("Add new Feed")
}
contentItem: Kirigami.FormLayout {
Controls.TextField {
id: urlField
//placeholderText: "https://example.org/feed.xml"
text: "https://planet.kde.org/global/atom.xml/"
Kirigami.FormData.label: "Url:"
}
Controls.Button {
text: i18n("Add Feed")
enabled: urlField.text
onClicked: {
Database.addFeed(urlField.text)
addSheet.close()
}
contentItem: Kirigami.FormLayout {
Controls.TextField {
id: urlField
//placeholderText: "https://example.org/feed.xml"
text: "https://planet.kde.org/global/atom.xml/"
Kirigami.FormData.label: "Url:"
}
Controls.Button {
text: i18n("Add Feed")
enabled: urlField.text
onClicked: {
Database.addFeed(urlField.text)
addSheet.close()
}
}
}
}
Kirigami.PlaceholderMessage {
@ -96,22 +96,6 @@ Kirigami.ScrollablePage {
id: feedListModel
}
/*
header:
Kirigami.AbstractListItem {
Controls.Label {
text: i18n("All feeds")
}
width: parent.width;
height: Kirigami.Units.gridUnit * 2
onClicked: {
feedList.focus = false
pageStack.push("qrc:/EntryListPage.qml")
}
}
*/
delegate: Kirigami.SwipeListItem {
height: Kirigami.Units.gridUnit*2