implement automatic completion popup and reformat on return

This commit is contained in:
Axel Kohlmeyer
2023-09-01 07:27:52 -04:00
parent 65866156dd
commit b2ba1bbe70
5 changed files with 75 additions and 5 deletions

View File

@ -317,6 +317,10 @@ LammpsGui::LammpsGui(QWidget *parent, const char *filename) :
}
command_list.sort();
ui->textEdit->setCommandList(command_list);
settings.beginGroup("reformat");
ui->textEdit->setReformatOnReturn(settings.value("return", true).toBool());
ui->textEdit->setAutoComplete(settings.value("automatic", true).toBool());
settings.endGroup();
}
LammpsGui::~LammpsGui()
@ -1256,6 +1260,10 @@ void LammpsGui::preferences()
lammpsstatus->hide();
}
if (imagewindow) imagewindow->createImage();
settings.beginGroup("reformat");
ui->textEdit->setReformatOnReturn(settings.value("return", true).toBool());
ui->textEdit->setAutoComplete(settings.value("automatic", true).toBool());
settings.endGroup();
}
}