disable re-indent on return by default
This commit is contained in:
@ -47,6 +47,7 @@
|
|||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
@ -355,7 +356,7 @@ LammpsGui::LammpsGui(QWidget *parent, const char *filename) :
|
|||||||
#undef ADD_STYLES
|
#undef ADD_STYLES
|
||||||
|
|
||||||
settings.beginGroup("reformat");
|
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());
|
ui->textEdit->setAutoComplete(settings.value("automatic", true).toBool());
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
}
|
}
|
||||||
@ -1395,7 +1396,7 @@ void LammpsGui::preferences()
|
|||||||
}
|
}
|
||||||
if (imagewindow) imagewindow->createImage();
|
if (imagewindow) imagewindow->createImage();
|
||||||
settings.beginGroup("reformat");
|
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());
|
ui->textEdit->setAutoComplete(settings.value("automatic", true).toBool());
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -554,7 +554,7 @@ EditorTab::EditorTab(QSettings *_settings, QWidget *parent) : QWidget(parent), s
|
|||||||
nameval->setRange(1, 32);
|
nameval->setRange(1, 32);
|
||||||
nameval->setValue(settings->value("name", "8").toInt());
|
nameval->setValue(settings->value("name", "8").toInt());
|
||||||
nameval->setObjectName("nameval");
|
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");
|
retval->setObjectName("retval");
|
||||||
autoval->setCheckState(settings->value("automatic", true).toBool() ? Qt::Checked
|
autoval->setCheckState(settings->value("automatic", true).toBool() ? Qt::Checked
|
||||||
: Qt::Unchecked);
|
: Qt::Unchecked);
|
||||||
|
|||||||
Reference in New Issue
Block a user