Some minor cleanup in doceditor
This commit is contained in:
+4
-3
@@ -78,6 +78,9 @@ class GuiDocEditor(QTextEdit):
|
|||||||
self.bigDoc = False
|
self.bigDoc = False
|
||||||
self.nonWord = "\"'"
|
self.nonWord = "\"'"
|
||||||
|
|
||||||
|
# Document State
|
||||||
|
self.hasSelection = False
|
||||||
|
|
||||||
# Typography
|
# Typography
|
||||||
self.typDQOpen = self.mainConf.fmtDoubleQuotes[0]
|
self.typDQOpen = self.mainConf.fmtDoubleQuotes[0]
|
||||||
self.typDQClose = self.mainConf.fmtDoubleQuotes[1]
|
self.typDQClose = self.mainConf.fmtDoubleQuotes[1]
|
||||||
@@ -86,7 +89,6 @@ class GuiDocEditor(QTextEdit):
|
|||||||
|
|
||||||
# Core Elements
|
# Core Elements
|
||||||
self.qDocument = self.document()
|
self.qDocument = self.document()
|
||||||
self.qDocument.setDocumentMargin(self.mainConf.getTextMargin())
|
|
||||||
self.qDocument.contentsChange.connect(self._docChange)
|
self.qDocument.contentsChange.connect(self._docChange)
|
||||||
|
|
||||||
# Document Title
|
# Document Title
|
||||||
@@ -100,8 +102,7 @@ class GuiDocEditor(QTextEdit):
|
|||||||
self.setContextMenuPolicy(Qt.CustomContextMenu)
|
self.setContextMenuPolicy(Qt.CustomContextMenu)
|
||||||
self.customContextMenuRequested.connect(self._openContextMenu)
|
self.customContextMenuRequested.connect(self._openContextMenu)
|
||||||
|
|
||||||
# Editor State
|
# Editor Settings
|
||||||
self.hasSelection = False
|
|
||||||
self.setMinimumWidth(self.mainConf.pxInt(300))
|
self.setMinimumWidth(self.mainConf.pxInt(300))
|
||||||
self.setAutoFillBackground(True)
|
self.setAutoFillBackground(True)
|
||||||
self.setAcceptRichText(False)
|
self.setAcceptRichText(False)
|
||||||
|
|||||||
Reference in New Issue
Block a user