From ea24329f4ce7dafd200aa104c2e532048d5dcd2b Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 14 Mar 2021 05:53:26 +0300 Subject: ConfigurePage: add progress bar --- qml/ConfigurePage.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'qml/ConfigurePage.qml') 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 + } + } } -- cgit v1.2.3-70-g09d2