Rewritten how document margins and text width is handled

This commit is contained in:
Veronica K. B. Olsen
2019-06-15 12:25:02 +02:00
parent 89ee9c7bf4
commit 4e5f2d30f4
5 changed files with 122 additions and 127 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ class GuiDocViewer(QTextBrowser):
theFont.setPointSize(self.mainConf.textSize)
self.setFont(theFont)
self.theQDoc.setDocumentMargin(self.mainConf.textMargin[0])
self.theQDoc.setDocumentMargin(self.mainConf.textMargin)
theOpt = QTextOption()
if self.mainConf.doJustify:
theOpt.setAlignment(Qt.AlignJustify)