diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-02-23 16:05:30 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-02-23 09:29:53 +0100 |
| commit | a219a8b3e5444b3dc0c8aa20ffafb2653c358652 (patch) | |
| tree | 7af06a9c32b92c449f6fc518a7cec7a645e3a160 /src/dialogs/settingsdialog.cpp | |
| parent | b03693711ab79f22da85998924145f1436b627aa (diff) | |
| download | kristall-a219a8b3e5444b3dc0c8aa20ffafb2653c358652.tar.gz | |
Add 'indent size' option
Also includes some about:help additions
Diffstat (limited to 'src/dialogs/settingsdialog.cpp')
| -rw-r--r-- | src/dialogs/settingsdialog.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp index 5283d47..ba901dd 100644 --- a/src/dialogs/settingsdialog.cpp +++ b/src/dialogs/settingsdialog.cpp @@ -136,6 +136,7 @@ void SettingsDialog::setGeminiStyle(DocumentStyle const &style) this->ui->indent_p->setValue(this->current_style.indent_p); this->ui->indent_h->setValue(this->current_style.indent_h); this->ui->indent_l->setValue(this->current_style.indent_l); + this->ui->indent_size->setValue(this->current_style.indent_size); this->ui->list_symbol->setCurrentIndex(0); for(int i = 0; i < this->ui->list_symbol->count(); ++i) { @@ -552,6 +553,12 @@ void SettingsDialog::on_indent_l_valueChanged(int value) this->reloadStylePreview(); } +void SettingsDialog::on_indent_size_valueChanged(double value) +{ + this->current_style.indent_size = value; + this->reloadStylePreview(); +} + void SettingsDialog::on_list_symbol_currentIndexChanged(int index) { if(index >= 0) { |
