LSP: Use MimeType file filter for language servers

Change-Id: I13e06b5513c64e20590ab4caf15093a201025b94
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
David Schulz
2018-09-05 13:38:08 +02:00
parent ff45c9428b
commit 51e3613057
7 changed files with 122 additions and 27 deletions

View File

@@ -58,8 +58,10 @@ void CompletingLineEdit::keyPressEvent(QKeyEvent *e)
{
if (e->key() == Qt::Key_Down && !e->modifiers()) {
if (QCompleter *comp = completer()) {
if (!comp->popup()->isVisible())
if (!comp->popup()->isVisible()) {
comp->complete();
return;
}
}
}
QLineEdit::keyPressEvent(e);