diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2016-01-26 13:02:42 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-26 09:51:45 -0800 |
commit | 1773f5e447e4d9ac66403d7dceff667ba971d740 (patch) | |
tree | ac272c0bc8706a5749f3b9cd25cd0b33616642ea /qt-mobile/qmlmanager.h | |
parent | 6575a0b4b84780ead4743aac72adde03bd3dfcdf (diff) | |
download | subsurface-1773f5e447e4d9ac66403d7dceff667ba971d740.tar.gz |
Correct usage of QString on qmlmanager
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.h')
-rw-r--r-- | qt-mobile/qmlmanager.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/qt-mobile/qmlmanager.h b/qt-mobile/qmlmanager.h index f06ff0868..b53af4d04 100644 --- a/qt-mobile/qmlmanager.h +++ b/qt-mobile/qmlmanager.h @@ -50,7 +50,7 @@ public: void setLoadFromCloud(bool done); QString startPageText() const; - void setStartPageText(QString text); + void setStartPageText(const QString& text); QString logText() const; void setLogText(const QString &logText); @@ -70,8 +70,11 @@ public slots: void loadDivesWithValidCredentials(); void loadDiveProgress(int percent); void provideAuth(QNetworkReply *reply, QAuthenticator *auth); - QString 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); + QString 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(); void applyGpsData(); @@ -80,12 +83,12 @@ public slots: void populateGpsData(); void clearGpsData(); void finishSetup(); - void showMap(QString location); - QString getNumber(QString diveId); - QString getDate(QString diveId); + void showMap(const QString& location); + QString getNumber(const QString& diveId); + QString getDate(const QString& diveId); QString getCurrentPosition(); - QString getCylinder(QString diveId); - QString getWeights(QString diveId); + QString getCylinder(const QString& diveId); + QString getWeights(const QString& diveId); void deleteGpsFix(quint64 when); void refreshDiveList(); |