diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-09-21 16:08:58 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-23 14:15:22 -0700 |
commit | c4c7e7a7f4d462490e8f0fea846f13bff6076845 (patch) | |
tree | 5f4ff830772fedfe8823b2a5db9c079e5067cf21 /qt-ui/locationinformation.h | |
parent | 012e8ccb46321258343504ecbb3f7fcca8929c24 (diff) | |
download | subsurface-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.h | 3 |
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; |