summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-08 10:41:00 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-11 12:36:43 -0500
commit1d74eb509f1253ac50bd2451123f63d8c313cb0b (patch)
tree56dca7eb20b863f1a80b9d29f3842aeff699cd95 /mobile-widgets/qml
parent4b2cae3f7c0702809dbce3af301667805e5fbcd3 (diff)
downloadsubsurface-1d74eb509f1253ac50bd2451123f63d8c313cb0b.tar.gz
mobile/qml: handle upload signals
Add uploadFinish and uploadProgress to Export page Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/Export.qml22
1 files changed, 19 insertions, 3 deletions
diff --git a/mobile-widgets/qml/Export.qml b/mobile-widgets/qml/Export.qml
index 81ceaaf09..8b908d16f 100644
--- a/mobile-widgets/qml/Export.qml
+++ b/mobile-widgets/qml/Export.qml
@@ -60,8 +60,16 @@ Kirigami.ScrollablePage {
echoMode: TextInput.PasswordEchoOnEdit
}
ProgressBar {
- indeterminate: true
+ id: progress
+ value: 0.0
}
+ Text {
+ id: statusText
+ Layout.fillWidth: true
+ Layout.columnSpan: 2
+ wrapMode: Text.Wrap
+ }
+
}
onApply: {
@@ -76,14 +84,22 @@ Kirigami.ScrollablePage {
// TO BE IMPLEMENTED
}
manager.exportToWEB(selectedExport, fieldUserID.text, fieldPassword.text, anonymize.checked)
- pageStack.pop()
- close()
}
onRejected: {
pageStack.pop()
close()
}
+ Connections {
+ target: manager
+ onUploadFinish: {
+ statusText.text = text
+ progress.value = 0
+ }
+ onUploadProgress: {
+ progress.value = percentage
+ }
+ }
}
ColumnLayout {