summaryrefslogtreecommitdiffstats
path: root/qt-mobile/main.qml
diff options
context:
space:
mode:
authorGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-07-10 11:31:24 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-10 06:03:56 -0700
commit866d67c5e7a8194c178b2b7afcdf298371e01516 (patch)
treeed6a18892c6235c19fd183884ca301b9fb89c184 /qt-mobile/main.qml
parentf01ec470e7b018443fad127a3b3e0f3f862e56e2 (diff)
downloadsubsurface-866d67c5e7a8194c178b2b7afcdf298371e01516.tar.gz
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>
Diffstat (limited to 'qt-mobile/main.qml')
-rw-r--r--qt-mobile/main.qml16
1 files changed, 3 insertions, 13 deletions
diff --git a/qt-mobile/main.qml b/qt-mobile/main.qml
index d3447a0c7..bf36e8866 100644
--- a/qt-mobile/main.qml
+++ b/qt-mobile/main.qml
@@ -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();
}
}
}