From d05e0fb878f90dcc09e4fb8ca5a0dee30262828c Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 10 Sep 2021 22:55:59 +0000 Subject: Make ConfigurePage scrollable --- qml/ConfigurePage.qml | 54 +++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/qml/ConfigurePage.qml b/qml/ConfigurePage.qml index bcb916d..9bdd4ed 100644 --- a/qml/ConfigurePage.qml +++ b/qml/ConfigurePage.qml @@ -7,7 +7,7 @@ import org.kde.kirigami 2.12 as Kirigami import DeltaChat 1.0 -Kirigami.Page { +Kirigami.ScrollablePage { title: qsTr("Configure account") id: root @@ -22,23 +22,7 @@ Kirigami.Page { } ] - FileDialog { - id: importBackupDialog - title: "Import backup" - folder: shortcuts.home - onAccepted: { - var url = importBackupDialog.fileUrl.toString() - if (url.startsWith("file://")) { - var filename = url.substring(7) - console.log("Importing " + filename) - root.context.importBackup(filename) - } - } - } - Kirigami.FormLayout { - anchors.fill: parent - TextField { id: addressField @@ -160,21 +144,35 @@ Kirigami.Page { root.context.configure() } } - } - Connections { - target: root.eventEmitter - function onConfigureProgress(accountId, progress, comment) { - progressBar.value = progress / 1000.0 - if (progress == 1000) { - root.context.startIo() + FileDialog { + id: importBackupDialog + title: "Import backup" + folder: shortcuts.home + onAccepted: { + var url = importBackupDialog.fileUrl.toString() + if (url.startsWith("file://")) { + var filename = url.substring(7) + console.log("Importing " + filename) + root.context.importBackup(filename) + } } } - function onImexProgress(accountId, progress) { - progressBar.value = progress / 1000.0 - if (progress == 1000) { - root.context.startIo() + Connections { + target: root.eventEmitter + function onConfigureProgress(accountId, progress, comment) { + progressBar.value = progress / 1000.0 + if (progress == 1000) { + root.context.startIo() + } + } + + function onImexProgress(accountId, progress) { + progressBar.value = progress / 1000.0 + if (progress == 1000) { + root.context.startIo() + } } } } -- cgit v1.2.3-54-g00ecf