summaryrefslogtreecommitdiffstats
path: root/qt-ui/locationinformation.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-09-21 16:08:58 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-23 14:15:22 -0700
commitc4c7e7a7f4d462490e8f0fea846f13bff6076845 (patch)
tree5f4ff830772fedfe8823b2a5db9c079e5067cf21 /qt-ui/locationinformation.h
parent012e8ccb46321258343504ecbb3f7fcca8929c24 (diff)
downloadsubsurface-c4c7e7a7f4d462490e8f0fea846f13bff6076845.tar.gz
Display the popup in the correct place
The popup should be shown beneath the QLineEdit. this code here is shamelessy stolen from the QCompleter source code because I really didn't want to rethink the correct way of doing this. 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.h b/qt-ui/locationinformation.h
index 16d5a3eae..b60c50606 100644
--- a/qt-ui/locationinformation.h
+++ b/qt-ui/locationinformation.h
@@ -93,6 +93,9 @@ public:
DiveLocationLineEdit(QWidget *parent =0 );
void refreshDiveSiteCache();
void setTemporaryDiveSiteName(const QString& s);
+protected:
+ void keyPressEvent(QKeyEvent *ev);
+ void showPopup();
private:
DiveLocationFilterProxyModel *proxy;
DiveLocationModel *model;