aboutsummaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-09-10 22:55:59 +0000
committerlink2xt <link2xt@testrun.org>2021-09-10 22:55:59 +0000
commitd05e0fb878f90dcc09e4fb8ca5a0dee30262828c (patch)
tree886c30e004176734024f96f1655c2be69260da23 /qml
parent8a3b8eaab0e18055bbbae5efe64f8e6b4d44f15a (diff)
downloadkdeltachat-d05e0fb878f90dcc09e4fb8ca5a0dee30262828c.tar.gz
kdeltachat-d05e0fb878f90dcc09e4fb8ca5a0dee30262828c.zip
Make ConfigurePage scrollable
Diffstat (limited to 'qml')
-rw-r--r--qml/ConfigurePage.qml54
1 files 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()
+ }
}
}
}