mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-31 08:20:09 -06:00
Setting for line wrap in Scintilla editors
A new setting is added to the 'SQL' tab of the Preferences dialog. It enables the line wrapping in the editors with none/character/word/ whitespace boundaries. See comments in issue #1173.
This commit is contained in:
@@ -167,6 +167,7 @@ void PreferencesDialog::loadSettings()
|
||||
ui->spinEditorFontSize->setValue(Settings::getValue("editor", "fontsize").toInt());
|
||||
ui->spinTabSize->setValue(Settings::getValue("editor", "tabsize").toInt());
|
||||
ui->spinLogFontSize->setValue(Settings::getValue("log", "fontsize").toInt());
|
||||
ui->wrapComboBox->setCurrentIndex(Settings::getValue("editor", "wrap_lines").toInt());
|
||||
ui->checkAutoCompletion->setChecked(Settings::getValue("editor", "auto_completion").toBool());
|
||||
ui->checkCompleteUpper->setEnabled(Settings::getValue("editor", "auto_completion").toBool());
|
||||
ui->checkCompleteUpper->setChecked(Settings::getValue("editor", "upper_keywords").toBool());
|
||||
@@ -221,6 +222,7 @@ void PreferencesDialog::saveSettings()
|
||||
Settings::setValue("editor", "fontsize", ui->spinEditorFontSize->value());
|
||||
Settings::setValue("editor", "tabsize", ui->spinTabSize->value());
|
||||
Settings::setValue("log", "fontsize", ui->spinLogFontSize->value());
|
||||
Settings::setValue("editor", "wrap_lines", ui->wrapComboBox->currentIndex());
|
||||
Settings::setValue("editor", "auto_completion", ui->checkAutoCompletion->isChecked());
|
||||
Settings::setValue("editor", "upper_keywords", ui->checkCompleteUpper->isChecked());
|
||||
Settings::setValue("editor", "error_indicators", ui->checkErrorIndicators->isChecked());
|
||||
|
||||
Reference in New Issue
Block a user