summaryrefslogtreecommitdiffstats
path: root/qt-ui/locationinformation.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-06-26 21:20:45 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-26 18:50:23 -0700
commitdee59e5334629ff1fb89753f08f512981236a02f (patch)
treeb0884739bd72a0e13d2880842ca76e8a7a9bfbfe /qt-ui/locationinformation.h
parentc2f7702805067b121f68dd2fbf5b3ee366f280f0 (diff)
downloadsubsurface-dee59e5334629ff1fb89753f08f512981236a02f.tar.gz
Dive site rewrite: fix adding a new dive and chaning notes / description
I had to create an event filter to deal with the missing callbacks from QPlainTextEdit (it doesn't support editingFinished()). Also we need to manually create a dive site on a newly added dive if the user entered one. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/locationinformation.h')
-rw-r--r--qt-ui/locationinformation.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/locationinformation.h b/qt-ui/locationinformation.h
index d8b3c9d8a..42e4d5ace 100644
--- a/qt-ui/locationinformation.h
+++ b/qt-ui/locationinformation.h
@@ -52,11 +52,12 @@ public:
SimpleDiveSiteEditDialog(QWidget *parent);
virtual ~SimpleDiveSiteEditDialog();
bool changed_dive_site;
+ bool eventFilter(QObject *obj, QEvent *ev);
public slots:
void on_diveSiteName_editingFinished();
void on_diveSiteCoordinates_editingFinished();
- void on_diveSiteDescription_editingFinished();
- void on_diveSiteNotes_editingFinished();
+ void diveSiteDescription_editingFinished();
+ void diveSiteNotes_editingFinished();
protected:
void showEvent(QShowEvent *ev);
private: