aboutsummaryrefslogtreecommitdiff
path: root/src/dialogs/settingsdialog.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-02-13 14:27:46 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-02-13 12:32:26 +0100
commitaeaa90c126b7f56cbbcf6b4ffe2f53db58292a33 (patch)
tree32d33238c04fadeaed04bf4608cf42abb4b23eab /src/dialogs/settingsdialog.cpp
parent19ac43503568ebc7fe4721f84292a11bbf7c2c2c (diff)
downloadkristall-aeaa90c126b7f56cbbcf6b4ffe2f53db58292a33.tar.gz
Margins are now split into seperate horizontal/vertical options
Diffstat (limited to 'src/dialogs/settingsdialog.cpp')
-rw-r--r--src/dialogs/settingsdialog.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp
index 1bbdcf3..252c7a6 100644
--- a/src/dialogs/settingsdialog.cpp
+++ b/src/dialogs/settingsdialog.cpp
@@ -110,7 +110,8 @@ void SettingsDialog::setGeminiStyle(DocumentStyle const &style)
this->ui->link_local_prefix->setText(this->current_style.internal_link_prefix);
this->ui->link_foreign_prefix->setText(this->current_style.external_link_prefix);
- this->ui->page_margin->setValue(this->current_style.margin);
+ this->ui->page_margin_h->setValue(this->current_style.margin_h);
+ this->ui->page_margin_v->setValue(this->current_style.margin_v);
this->ui->enable_justify_text->setChecked(this->current_style.justify_text);
@@ -437,9 +438,15 @@ void SettingsDialog::on_preview_url_textChanged(const QString &)
this->reloadStylePreview();
}
-void SettingsDialog::on_page_margin_valueChanged(double value)
+void SettingsDialog::on_page_margin_h_valueChanged(double value)
{
- this->current_style.margin = value;
+ this->current_style.margin_h = value;
+ this->reloadStylePreview();
+}
+
+void SettingsDialog::on_page_margin_v_valueChanged(double value)
+{
+ this->current_style.margin_v = value;
this->reloadStylePreview();
}