disable re-indent on return by default

This commit is contained in:
Axel Kohlmeyer
2024-08-03 08:28:16 -04:00
parent 4dfc15151a
commit c6e03d2aa4
2 changed files with 4 additions and 3 deletions

View File

@ -47,6 +47,7 @@
#include <QTimer>
#include <QUrl>
#include <algorithm>
#include <cstdint>
#include <cstdlib>
#include <cstring>
@ -355,7 +356,7 @@ LammpsGui::LammpsGui(QWidget *parent, const char *filename) :
#undef ADD_STYLES
settings.beginGroup("reformat");
ui->textEdit->setReformatOnReturn(settings.value("return", true).toBool());
ui->textEdit->setReformatOnReturn(settings.value("return", false).toBool());
ui->textEdit->setAutoComplete(settings.value("automatic", true).toBool());
settings.endGroup();
}
@ -1395,7 +1396,7 @@ void LammpsGui::preferences()
}
if (imagewindow) imagewindow->createImage();
settings.beginGroup("reformat");
ui->textEdit->setReformatOnReturn(settings.value("return", true).toBool());
ui->textEdit->setReformatOnReturn(settings.value("return", false).toBool());
ui->textEdit->setAutoComplete(settings.value("automatic", true).toBool());
settings.endGroup();
}

View File

@ -554,7 +554,7 @@ EditorTab::EditorTab(QSettings *_settings, QWidget *parent) : QWidget(parent), s
nameval->setRange(1, 32);
nameval->setValue(settings->value("name", "8").toInt());
nameval->setObjectName("nameval");
retval->setCheckState(settings->value("return", true).toBool() ? Qt::Checked : Qt::Unchecked);
retval->setCheckState(settings->value("return", false).toBool() ? Qt::Checked : Qt::Unchecked);
retval->setObjectName("retval");
autoval->setCheckState(settings->value("automatic", true).toBool() ? Qt::Checked
: Qt::Unchecked);