mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Disable autocompletion for find/replace text
This commit is contained in:
@@ -41,6 +41,9 @@ FindReplace::FindReplace(QWidget *parent) : QFrame(parent), ui(new Ui::FindRepla
|
||||
RDLineEdit *edit = new RDLineEdit(this);
|
||||
ui->findText->setLineEdit(edit);
|
||||
|
||||
ui->findText->setAutoCompletion(false);
|
||||
ui->replaceText->setAutoCompletion(false);
|
||||
|
||||
QObject::connect(edit, &RDLineEdit::keyPress, [this](QKeyEvent *event) {
|
||||
if(event->key() == Qt::Key_Return || event->key() == Qt::Key_Enter)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user