diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-08-25 18:45:29 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-25 17:58:59 -0700 |
commit | 03702edf87c7a8787302a08bcf1f051223f6accb (patch) | |
tree | 181d8018b87f346d5db37ba64dab03da1dbbc3f5 /qt-ui/locationinformation.cpp | |
parent | aaa70ff56e2b5891f1c8241bf10a8e236bf86108 (diff) | |
download | subsurface-03702edf87c7a8787302a08bcf1f051223f6accb.tar.gz |
Get taxonomy from edit dive site widget
Moved the get taxonomy button from the maintab to the edit dive site
widget.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/locationinformation.cpp')
-rw-r--r-- | qt-ui/locationinformation.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index d8d027a34..2a52d6d7f 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -6,6 +6,8 @@ #include "globe.h" #include "filtermodels.h" #include "divelocationmodel.h" +#include "divesitehelpers.h" + #include <QDebug> #include <QShowEvent> @@ -26,6 +28,7 @@ LocationInformationWidget::LocationInformationWidget(QWidget *parent) : QGroupBo connect(this, SIGNAL(startFilterDiveSite(uint32_t)), MultiFilterSortModel::instance(), SLOT(startFilterDiveSite(uint32_t))); connect(this, SIGNAL(stopFilterDiveSite()), MultiFilterSortModel::instance(), SLOT(stopFilterDiveSite())); + connect(ui.geoCodeButton, SIGNAL(clicked()), this, SLOT(reverseGeocode())); #ifndef NO_MARBLE // Globe Management Code. @@ -248,3 +251,11 @@ void LocationManagementEditHelper::resetDiveSiteUuid() { uint32_t LocationManagementEditHelper::diveSiteUuid() const { return last_uuid; } + +void LocationInformationWidget::reverseGeocode() +{ + qDebug() << "Chamou"; + ReverseGeoLookupThread *geoLookup = ReverseGeoLookupThread::instance(); + geoLookup->lookup(&displayed_dive_site); + updateLabels(); +} |