aboutsummaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml')
-rw-r--r--qml/AccountsPage.qml2
-rw-r--r--qml/ConfigurePage.qml12
2 files changed, 13 insertions, 1 deletions
diff --git a/qml/AccountsPage.qml b/qml/AccountsPage.qml
index ce1df02..7f23776 100644
--- a/qml/AccountsPage.qml
+++ b/qml/AccountsPage.qml
@@ -112,7 +112,7 @@ Kirigami.Page {
if (context.isConfigured()) {
pageStack.replace("qrc:/qml/ChatlistPage.qml", {context: context})
} else {
- pageStack.replace("qrc:/qml/ConfigurePage.qml", {context: context})
+ pageStack.replace("qrc:/qml/ConfigurePage.qml", {context: context, eventEmitter: eventEmitter})
}
pageStack.layers.pop()
}
diff --git a/qml/ConfigurePage.qml b/qml/ConfigurePage.qml
index 58331ed..9fc229a 100644
--- a/qml/ConfigurePage.qml
+++ b/qml/ConfigurePage.qml
@@ -11,6 +11,7 @@ Kirigami.Page {
id: configurePage
required property DcContext context
+ required property DcAccountsEventEmitter eventEmitter
ColumnLayout {
anchors.fill: parent
@@ -26,6 +27,10 @@ Kirigami.Page {
placeholderText: "Password"
echoMode: TextInput.PasswordEchoOnEdit
}
+ ProgressBar {
+ id: progressBar
+ value: 0.0
+ }
Button {
text: "Login"
onClicked: {
@@ -37,4 +42,11 @@ Kirigami.Page {
}
}
}
+
+ Connections {
+ target: configurePage.eventEmitter
+ function onConfigureProgress(accountId, progress, comment) {
+ progressBar.value = progress / 1000.0
+ }
+ }
}