summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.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 /qt-ui/maintab.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 'qt-ui/maintab.h')
-rw-r--r--qt-ui/maintab.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h
index ece2c4009..d201d2a47 100644
--- a/qt-ui/maintab.h
+++ b/qt-ui/maintab.h
@@ -120,7 +120,6 @@ private:
Completers completers;
void resetPallete();
void saveTags();
- QString printGPSCoords(int lat, int lon);
void updateGpsCoordinates(const struct dive *dive);
};