Fix sheet

This commit is contained in:
Carl Schwan 2020-06-02 16:47:07 +02:00 committed by Tobias Fella
parent 07b2b9b70a
commit 4f7af0f2ff

View File

@ -57,18 +57,23 @@ 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 { }
footer: Controls.Button {
text: i18n("Add Feed") text: i18n("Add Feed")
enabled: urlField.text enabled: urlField.text
onClicked: { onClicked: {
@ -77,7 +82,6 @@ Kirigami.ScrollablePage {
} }
} }
} }
}
Kirigami.PlaceholderMessage { Kirigami.PlaceholderMessage {
visible: feedList.count === 0 visible: feedList.count === 0