From 4f7af0f2ffe6a41d3f0f0ff2f3d9123a489f8ef9 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 2 Jun 2020 16:47:07 +0200 Subject: [PATCH] Fix sheet --- src/qml/FeedListPage.qml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/qml/FeedListPage.qml b/src/qml/FeedListPage.qml index 3857a57b..61e96406 100644 --- a/src/qml/FeedListPage.qml +++ b/src/qml/FeedListPage.qml @@ -57,24 +57,28 @@ Kirigami.ScrollablePage { Kirigami.OverlaySheet { id: addSheet + parent: applicationWindow().overlay header: Kirigami.Heading { text: i18n("Add new Feed") } - contentItem: Kirigami.FormLayout { + contentItem: ColumnLayout { + Controls.Label { + text: i18n("Url:") + } Controls.TextField { id: urlField - //placeholderText: "https://example.org/feed.xml" + Layout.fillWidth: true 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() - } + } + + footer: Controls.Button { + text: i18n("Add Feed") + enabled: urlField.text + onClicked: { + Database.addFeed(urlField.text) + addSheet.close() } } }