mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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
|
echoMode: TextInput.PasswordEchoOnEdit
|
||||||
}
|
}
|
||||||
ProgressBar {
|
ProgressBar {
|
||||||
indeterminate: true
|
id: progress
|
||||||
|
value: 0.0
|
||||||
}
|
}
|
||||||
|
Text {
|
||||||
|
id: statusText
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.columnSpan: 2
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onApply: {
|
onApply: {
|
||||||
|
@ -76,14 +84,22 @@ Kirigami.ScrollablePage {
|
||||||
// TO BE IMPLEMENTED
|
// TO BE IMPLEMENTED
|
||||||
}
|
}
|
||||||
manager.exportToWEB(selectedExport, fieldUserID.text, fieldPassword.text, anonymize.checked)
|
manager.exportToWEB(selectedExport, fieldUserID.text, fieldPassword.text, anonymize.checked)
|
||||||
pageStack.pop()
|
|
||||||
close()
|
|
||||||
}
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
pageStack.pop()
|
pageStack.pop()
|
||||||
close()
|
close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: manager
|
||||||
|
onUploadFinish: {
|
||||||
|
statusText.text = text
|
||||||
|
progress.value = 0
|
||||||
|
}
|
||||||
|
onUploadProgress: {
|
||||||
|
progress.value = percentage
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue