From 2faff7ceaea61a6b9dc6b53fbc52169671a27874 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 30 Jul 2015 21:53:53 -0300 Subject: Add a button to pick the coordinates via globe on the dive site edit It's a placeholder for now, but next commit will make it work. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/locationInformation.ui | 59 ++++++++++++++++++++++++++----------------- qt-ui/locationinformation.cpp | 5 ++++ qt-ui/locationinformation.h | 1 + 3 files changed, 42 insertions(+), 23 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/locationInformation.ui b/qt-ui/locationInformation.ui index 8b7992439..30034a016 100644 --- a/qt-ui/locationInformation.ui +++ b/qt-ui/locationInformation.ui @@ -34,15 +34,18 @@ - - - - - - - Coordinates + + + + Qt::Vertical - + + + 20 + 40 + + + @@ -54,9 +57,6 @@ - - - @@ -64,20 +64,31 @@ - - - - Qt::Vertical + + + + Coordinates - - - 20 - 40 - + + + + + + Pick on the globe - + + + :/geocode:/geocode + + + + + + + + - + @@ -90,6 +101,8 @@ 1 - + + + diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 48d5035ab..aec20f936 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -89,6 +89,11 @@ void LocationInformationWidget::acceptChanges() emit coordinatesChanged(); } +void LocationInformationWidget::on_btnPickCoordinates_clicked() +{ + qDebug() << "Sim, Deve haver o perdao"; +} + void LocationInformationWidget::rejectChanges() { resetState(); diff --git a/qt-ui/locationinformation.h b/qt-ui/locationinformation.h index 3eff271c2..ef28ddafd 100644 --- a/qt-ui/locationinformation.h +++ b/qt-ui/locationinformation.h @@ -24,6 +24,7 @@ public slots: void on_diveSiteDescription_textChanged(const QString& text); void on_diveSiteName_textChanged(const QString& text); void on_diveSiteNotes_textChanged(); + void on_btnPickCoordinates_clicked(); private slots: void updateLabels(); signals: -- cgit v1.2.3-70-g09d2