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>
This commit is contained in:
Maximilian Güntner 2013-11-02 17:04:18 +01:00
parent 2967391ffe
commit c4d8b6a4d5
2 changed files with 35 additions and 1 deletions

View file

@ -19,6 +19,8 @@ public:
public slots:
void reparse();
void completionSelected(QString);
protected:
void keyPressEvent(QKeyEvent *e);
private:
QCompleter *m_completer;
};