mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
mobile/qml: handle upload signals
Add uploadFinish and uploadProgress to Export page Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
parent
4b2cae3f7c
commit
1d74eb509f
1 changed files with 19 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue