mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
2967391ffe
commit
c4d8b6a4d5
2 changed files with 35 additions and 1 deletions
|
@ -19,6 +19,8 @@ public:
|
|||
public slots:
|
||||
void reparse();
|
||||
void completionSelected(QString);
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent *e);
|
||||
private:
|
||||
QCompleter *m_completer;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue