commit
b64ff6f930
1 changed files with 5 additions and 3 deletions
|
@ -75,10 +75,12 @@ void LineEditCompleter::keyPressEvent(QKeyEvent * event)
|
||||||
}
|
}
|
||||||
|
|
||||||
QLineEdit::keyPressEvent(event);
|
QLineEdit::keyPressEvent(event);
|
||||||
QString textValue = text();
|
// return if the completer is null or if the most recently typed char was '@'.
|
||||||
//Wait until the first character after @
|
// Only want the popup AFTER typing the first char of the mention.
|
||||||
if (!c || text().right(1).contains("@"))
|
if (!c || text().right(1).contains("@")) {
|
||||||
|
c->popup()->hide();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//Set new completion prefix
|
//Set new completion prefix
|
||||||
c->setCompletionPrefix(cursorWord(text()));
|
c->setCompletionPrefix(cursorWord(text()));
|
||||||
|
|
Loading…
Reference in a new issue