summaryrefslogtreecommitdiffstats
path: root/qt-ui/tagwidget.h
diff options
context:
space:
mode:
authorGravatar Maximilian Güntner <maximilian.guentner@gmail.com>2013-11-02 17:04:18 +0100
committerGravatar Maximilian Güntner <maximilian.guentner@gmail.com>2013-11-02 17:10:34 +0100
commitc4d8b6a4d5907def9538b024030dc0980cc4182b (patch)
tree5056491e7f73cbb7c5bcf63d2da06ac35ad90f25 /qt-ui/tagwidget.h
parent2967391ffe29970862d7baa0ac8396b102716b16 (diff)
downloadsubsurface-c4d8b6a4d5907def9538b024030dc0980cc4182b.tar.gz
Fix the inconsistent behaviour of QCompleter
The TagWidget behaves now similiar to a QLineEdit. Pressing Enter/Return will now close the completion widget. Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
Diffstat (limited to 'qt-ui/tagwidget.h')
-rw-r--r--qt-ui/tagwidget.h2
1 files changed, 2 insertions, 0 deletions
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;
};