From c4d8b6a4d5907def9538b024030dc0980cc4182b Mon Sep 17 00:00:00 2001 From: Maximilian Güntner Date: Sat, 2 Nov 2013 17:04:18 +0100 Subject: Fix the inconsistent behaviour of QCompleter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The TagWidget behaves now similiar to a QLineEdit. Pressing Enter/Return will now close the completion widget. Signed-off-by: Maximilian Güntner --- qt-ui/tagwidget.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/tagwidget.h') diff --git a/qt-ui/tagwidget.h b/qt-ui/tagwidget.h index ff19d7283..b9c1619f9 100644 --- a/qt-ui/tagwidget.h +++ b/qt-ui/tagwidget.h @@ -19,6 +19,8 @@ public: public slots: void reparse(); void completionSelected(QString); +protected: + void keyPressEvent(QKeyEvent *e); private: QCompleter *m_completer; }; -- cgit v1.2.3-70-g09d2