aboutsummaryrefslogtreecommitdiff
path: root/src/documentstyle.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-02-28 10:31:16 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-02-28 12:11:51 +0100
commit803559502dd1b330da39073cffa84278df403a88 (patch)
treece83d68cbe825ebe1bb400df1cc7fb74c66c4fc5 /src/documentstyle.cpp
parentc14d071e1e883891e96d908a1054929a291748ff (diff)
downloadkristall-803559502dd1b330da39073cffa84278df403a88.tar.gz
Add preference for centred H1
Also moves the 'enable text width' checkbox to next to the text width option, to save space.
Diffstat (limited to 'src/documentstyle.cpp')
-rw-r--r--src/documentstyle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/documentstyle.cpp b/src/documentstyle.cpp
index c74faba..c7d6696 100644
--- a/src/documentstyle.cpp
+++ b/src/documentstyle.cpp
@@ -146,6 +146,7 @@ DocumentStyle::DocumentStyle(bool do_init) : theme(Fixed),
"lightblue", "magenta", "cyan", "white"}),
justify_text(true),
text_width_enabled(true),
+ centre_h1(false),
line_height_p(5.0),
line_height_h(5.0),
indent_bq(1), indent_p(1), indent_h(0), indent_l(2),
@@ -272,6 +273,7 @@ bool DocumentStyle::save(QSettings &settings) const
settings.setValue("justify_text", justify_text);
settings.setValue("text_width_enabled", text_width_enabled);
+ settings.setValue("centre_h1", centre_h1);
settings.setValue("text_width", text_width);
settings.setValue("line_height_p", line_height_p);
settings.setValue("line_height_h", line_height_h);
@@ -390,6 +392,7 @@ bool DocumentStyle::load(QSettings &settings)
justify_text = settings.value("justify_text", justify_text).toBool();
text_width_enabled = settings.value("text_width_enabled", text_width_enabled).toBool();
+ centre_h1 = settings.value("centre_h1", centre_h1).toBool();
text_width = settings.value("text_width", text_width).toInt();
line_height_p = settings.value("line_height_p", line_height_p).toDouble();
line_height_h = settings.value("line_height_h", line_height_h).toDouble();