mirror of
https://github.com/KDE/kasts.git
synced 2024-12-25 16:02:54 +01:00
Fix sheet
This commit is contained in:
parent
07b2b9b70a
commit
4f7af0f2ff
@ -57,24 +57,28 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
Kirigami.OverlaySheet {
|
Kirigami.OverlaySheet {
|
||||||
id: addSheet
|
id: addSheet
|
||||||
|
parent: applicationWindow().overlay
|
||||||
header: Kirigami.Heading {
|
header: Kirigami.Heading {
|
||||||
text: i18n("Add new Feed")
|
text: i18n("Add new Feed")
|
||||||
}
|
}
|
||||||
|
|
||||||
contentItem: Kirigami.FormLayout {
|
contentItem: ColumnLayout {
|
||||||
|
Controls.Label {
|
||||||
|
text: i18n("Url:")
|
||||||
|
}
|
||||||
Controls.TextField {
|
Controls.TextField {
|
||||||
id: urlField
|
id: urlField
|
||||||
//placeholderText: "https://example.org/feed.xml"
|
Layout.fillWidth: true
|
||||||
text: "https://planet.kde.org/global/atom.xml/"
|
text: "https://planet.kde.org/global/atom.xml/"
|
||||||
Kirigami.FormData.label: "Url:"
|
|
||||||
}
|
}
|
||||||
Controls.Button {
|
}
|
||||||
text: i18n("Add Feed")
|
|
||||||
enabled: urlField.text
|
footer: Controls.Button {
|
||||||
onClicked: {
|
text: i18n("Add Feed")
|
||||||
Database.addFeed(urlField.text)
|
enabled: urlField.text
|
||||||
addSheet.close()
|
onClicked: {
|
||||||
}
|
Database.addFeed(urlField.text)
|
||||||
|
addSheet.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user