aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/locationinformation.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-09-21 16:51:39 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-23 14:15:22 -0700
commitfdd28fddf2303d6cf2c51383c87195af3774a91c (patch)
tree2306e1b62e6886fbba23e9b5f25bfdea6ab1beab /qt-ui/locationinformation.h
parentc4c7e7a7f4d462490e8f0fea846f13bff6076845 (diff)
downloadsubsurface-fdd28fddf2303d6cf2c51383c87195af3774a91c.tar.gz
Start to handle keypresses
Keypress management is one of the main functions of the completer, so we must create an event filter and hook things up properly. key esq / enter should close the popup (and not leave us with a popup open and no way to close it - it breaks X) 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.h b/qt-ui/locationinformation.h
index b60c50606..a1649d645 100644
--- a/qt-ui/locationinformation.h
+++ b/qt-ui/locationinformation.h
@@ -93,6 +93,7 @@ public:
DiveLocationLineEdit(QWidget *parent =0 );
void refreshDiveSiteCache();
void setTemporaryDiveSiteName(const QString& s);
+ bool eventFilter(QObject*, QEvent*);
protected:
void keyPressEvent(QKeyEvent *ev);
void showPopup();