From a219a8b3e5444b3dc0c8aa20ffafb2653c358652 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Tue, 23 Feb 2021 16:05:30 +1100 Subject: Add 'indent size' option Also includes some about:help additions --- src/dialogs/settingsdialog.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/dialogs/settingsdialog.cpp') 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) { -- cgit v1.2.3