From fdd28fddf2303d6cf2c51383c87195af3774a91c Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 21 Sep 2015 16:51:39 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/locationinformation.h') 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(); -- cgit v1.2.3-70-g09d2