summaryrefslogtreecommitdiffstats
path: root/qthelper.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-05-12 13:19:57 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-13 09:16:11 +0900
commit2b06e4be671930bc22feb830f328871a31315d9f (patch)
tree1eef094dcfbe77c24383ffe815c152995491ceff /qthelper.h
parent05e00866312b177ff64fa6e5bcd565871a66d172 (diff)
downloadsubsurface-2b06e4be671930bc22feb830f328871a31315d9f.tar.gz
Move printGpsCoords from MainTab to QtHelper
Last time I touched this I got a scream from dirk, but then I looked at the code again and the problem that I faced was that I broke translations in a sad way, well, now I broke it again. However, this method shouldn't belong to MainTab ( because of that thingy that I said before and also many others: Separate the logic of your application from the UI specific code ) This generates a string that's going to be used on the Interface, it doesn't display it on the interface. Move it down below makes it easier to test ( I don't need to create an Widget and worry about the parent-relationship with the mainwindow just to test this function, for instance. ) Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.h')
-rw-r--r--qthelper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qthelper.h b/qthelper.h
index 9d31f5a12..6067e1359 100644
--- a/qthelper.h
+++ b/qthelper.h
@@ -41,6 +41,6 @@ public:
QString weight_string(int weight_in_grams);
bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_text, bool *parsed);
-
+QString printGPSCoords(int lat, int lon);
QList<int> getDivesInTrip(dive_trip_t *trip);
#endif // QTHELPER_H