Skip to content

Commit

Permalink
disable re-indent on return by default
Browse files Browse the repository at this point in the history
  • Loading branch information
akohlmey committed Aug 3, 2024
1 parent 4dfc151 commit c6e03d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tools/lammps-gui/lammpsgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <QTimer>
#include <QUrl>

#include <algorithm>
#include <cstdint>
#include <cstdlib>
#include <cstring>
Expand Down Expand Up @@ -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();
}
Expand Down Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion tools/lammps-gui/preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c6e03d2

Please sign in to comment.