summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-05 22:53:32 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-05 22:53:32 -0800
commite774c8077b516652dc0139a5bac93e60f0ed9b9f (patch)
treebe63b54c6b66198e11c18564e83e56bce6db20eb /qt-mobile/qmlmanager.h
parent415536aba9cc805c2ed2df2e6981820e2b0680b2 (diff)
downloadsubsurface-e774c8077b516652dc0139a5bac93e60f0ed9b9f.tar.gz
QML UI: allow edit of dive date and time
This is a bit more complicated because we are asking the user to edit the text field instead of giving them a date and time picker. This is not a great choice, but let's run with it for now. One downside is that the user is likely going to edit the date "Oct 29" -> "Oct 25" without adjusting the day of the week. And if we then try to parse that Qt correctly complains about an invalid date. So we hack around this by removing the day of the week from both the format and the date entered (which of course now will break things if the user did, in fact, adjust the day of the week). As I said, not a great solution. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.h')
-rw-r--r--qt-mobile/qmlmanager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-mobile/qmlmanager.h b/qt-mobile/qmlmanager.h
index 097aca3a2..24ca265e6 100644
--- a/qt-mobile/qmlmanager.h
+++ b/qt-mobile/qmlmanager.h
@@ -71,7 +71,7 @@ public slots:
void loadDivesWithValidCredentials();
void loadDiveProgress(int percent);
void provideAuth(QNetworkReply *reply, QAuthenticator *auth);
- void commitChanges(QString diveId, QString location, QString gps, QString duration, QString depth,
+ void commitChanges(QString diveId, QString date, QString location, QString gps, QString duration, QString depth,
QString airtemp, QString watertemp, QString suit, QString buddy, QString diveMaster, QString notes);
void saveChanges();
QString addDive();