From 10a0a252c826ff3bb8871ff79951d8272132bd08 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 17 May 2015 17:14:23 -0300 Subject: Update the dive location when showing the dialog Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'qt-ui/locationinformation.h') diff --git a/qt-ui/locationinformation.h b/qt-ui/locationinformation.h index 1050a87d5..82105c333 100644 --- a/qt-ui/locationinformation.h +++ b/qt-ui/locationinformation.h @@ -20,20 +20,19 @@ class LocationInformationWidget : public QGroupBox { Q_OBJECT public: LocationInformationWidget(QWidget *parent = 0); - +protected: + void showEvent(QShowEvent *); +\ public slots: void acceptChanges(); void rejectChanges(); - - void showEvent(QShowEvent *); - void setLocationId(uint32_t uuid); void updateGpsCoordinates(void); void markChangedWidget(QWidget *w); void enableEdition(); void resetState(); void resetPallete(); - + void setCurrentDiveSite(int dive_nr); void on_diveSiteCoordinates_textChanged(const QString& text); void on_diveSiteDescription_textChanged(const QString& text); void on_diveSiteName_textChanged(const QString& text); -- cgit v1.2.3-70-g09d2