diff options
Diffstat (limited to 'src/renderers/textstyleinstance.cpp')
| -rw-r--r-- | src/renderers/textstyleinstance.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/renderers/textstyleinstance.cpp b/src/renderers/textstyleinstance.cpp index 6d734f1..0a99625 100644 --- a/src/renderers/textstyleinstance.cpp +++ b/src/renderers/textstyleinstance.cpp @@ -28,6 +28,24 @@ TextStyleInstance::TextStyleInstance(DocumentStyle const & themed_style) preformatted_format.setNonBreakableLines(true); - block_quote_format.setIndent(1); + block_quote_format.setIndent(2); block_quote_format.setBackground(themed_style.blockquote_color); + + // Other alignments + standard_format.setAlignment(Qt::AlignJustify); + standard_format.setLineHeight(5, QTextBlockFormat::LineDistanceHeight); + standard_format.setIndent(1); + + link_format.setLineHeight(5, QTextBlockFormat::LineDistanceHeight); + + block_quote_format.setAlignment(Qt::AlignJustify); + block_quote_format.setLineHeight(5, QTextBlockFormat::LineDistanceHeight); + + list_format.setAlignment(Qt::AlignJustify); + list_format.setLineHeight(5, QTextBlockFormat::LineDistanceHeight); + list_format.setIndent(2); + + preformatted_format.setIndent(1); + + heading_format.setLineHeight(0, QTextBlockFormat::LineDistanceHeight); } |
