summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-26 21:37:18 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-26 21:37:18 -0800
commit0962b504ce546dfa8b71cc91a2931fcae83275d5 (patch)
tree11e0f95642f1ae63991d72fa0d8f50a10513b81a /qt-mobile/qmlmanager.cpp
parentdc0be271bd0d4f9823eb5212287f1a74cbecc2f7 (diff)
downloadsubsurface-0962b504ce546dfa8b71cc91a2931fcae83275d5.tar.gz
QML UI: get add dive closer to being useful
Now we at least start out with the corret date, time and number. This still isn't functional as a lot of the data aren't used and the way you save the data is completely silly, but it's another step in the right direction. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r--qt-mobile/qmlmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index 3a62fb342..cdf844492 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -336,10 +336,10 @@ void QMLManager::saveChanges()
mark_divelist_changed(false);
}
-void QMLManager::addDive()
+QString QMLManager::addDive()
{
appendTextToLog("Adding new dive.");
- DiveListModel::instance()->startAddDive();
+ return DiveListModel::instance()->startAddDive();
}
void QMLManager::applyGpsData()