diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-09-22 14:31:56 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-23 14:15:22 -0700 |
commit | eb2c78e9536f55f972154c9595ccb588318935d9 (patch) | |
tree | f063a3d3cc0e76a9290dbaf6fd92cf8403c82bd5 /qt-ui/locationinformation.h | |
parent | fdec250723549453e714580724231ee2fb866907 (diff) | |
download | subsurface-eb2c78e9536f55f972154c9595ccb588318935d9.tar.gz |
Random fixes and improvements
Whitespace fixes, constructor fixes, new slot (still unused)
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.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.h b/qt-ui/locationinformation.h index b52c03a9a..6df56f05c 100644 --- a/qt-ui/locationinformation.h +++ b/qt-ui/locationinformation.h @@ -90,11 +90,17 @@ public: class DiveLocationLineEdit : public QLineEdit { Q_OBJECT public: + enum DiveSiteType { NO_DIVE_SITE, NEW_DIVE_SITE, EXISTING_DIVE_SITE }; DiveLocationLineEdit(QWidget *parent =0 ); void refreshDiveSiteCache(); void setTemporaryDiveSiteName(const QString& s); bool eventFilter(QObject*, QEvent*); void itemActivated(const QModelIndex& index); + void setDiveSiteName(); + + DiveSiteType currDiveSiteType() const; + uint32_t currDiveSiteUuid() const; + protected: void keyPressEvent(QKeyEvent *ev); void showPopup(); @@ -102,6 +108,8 @@ private: DiveLocationFilterProxyModel *proxy; DiveLocationModel *model; DiveLocationListView *view; + DiveSiteType currType; + uint32_t currUuid; }; #endif |