diff options
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(); +} |