diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-02-13 18:57:24 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-02-13 12:31:49 +0100 |
| commit | 6c1a611ffd684e47ce1e9cdd7a1ae1e5b0069698 (patch) | |
| tree | 8b655316d31b76e26fd59c5638fd25f3ea1268e4 /src/dialogs/settingsdialog.cpp | |
| parent | 698abdb9da65136183959033729cd77053a6cf1d (diff) | |
| download | kristall-6c1a611ffd684e47ce1e9cdd7a1ae1e5b0069698.tar.gz | |
add pref for typographer quotes
Also includes a fix for single-quotes on words like "'till"
Diffstat (limited to 'src/dialogs/settingsdialog.cpp')
| -rw-r--r-- | src/dialogs/settingsdialog.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp index d979bbe..16c74aa 100644 --- a/src/dialogs/settingsdialog.cpp +++ b/src/dialogs/settingsdialog.cpp @@ -249,6 +249,12 @@ void SettingsDialog::setOptions(const GenericSettings &options) this->ui->urlbarhl_none->setChecked(true); } + if(this->current_options.fancy_quotes) { + this->ui->fancyquotes_on->setChecked(true); + } else { + this->ui->fancyquotes_off->setChecked(true); + } + this->ui->max_redirects->setValue(this->current_options.max_redirections); this->ui->redirection_mode->setCurrentIndex(0); @@ -716,6 +722,16 @@ void SettingsDialog::on_urlbarhl_none_clicked() this->current_options.fancy_urlbar = false; } +void SettingsDialog::on_fancyquotes_on_clicked() +{ + this->current_options.fancy_quotes = true; +} + +void SettingsDialog::on_fancyquotes_off_clicked() +{ + this->current_options.fancy_quotes = false; +} + void SettingsDialog::on_redirection_mode_currentIndexChanged(int index) { this->current_options.redirection_policy = GenericSettings::RedirectionWarning(this->ui->redirection_mode->itemData(index).toInt()); |
