mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: Load dives from cloud
Load dives from the Subsurface cloud service using the user's saved credentials. This will display the dives in the same way as loading them from a local file. Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
This commit is contained in:
parent
f01ec470e7
commit
866d67c5e7
3 changed files with 28 additions and 52 deletions
|
|
@ -9,16 +9,6 @@ ApplicationWindow {
|
|||
title: qsTr("Subsurface")
|
||||
width: 500;
|
||||
|
||||
FileDialog {
|
||||
id: fileOpen
|
||||
selectExisting: true
|
||||
selectMultiple: true
|
||||
|
||||
onAccepted: {
|
||||
manager.setFilename(fileUrl)
|
||||
}
|
||||
}
|
||||
|
||||
QMLManager {
|
||||
id: manager
|
||||
}
|
||||
|
|
@ -48,10 +38,10 @@ ApplicationWindow {
|
|||
}
|
||||
|
||||
Button {
|
||||
id: openFile
|
||||
text: "Open File"
|
||||
id: loadDivesButton
|
||||
text: "Load Dives"
|
||||
onClicked: {
|
||||
fileOpen.open();
|
||||
manager.loadDives();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue