Spell check comments and docstrings
This commit is contained in:
@@ -417,7 +417,7 @@ class GuiDocEditor(QTextEdit):
|
||||
self.setDocumentChanged(False)
|
||||
qApp.restoreOverrideCursor()
|
||||
|
||||
# This is a hack to fix invisble cursor on an empty document
|
||||
# This is a hack to fix invisible cursor on an empty document
|
||||
if self.document().characterCount() <= 1:
|
||||
self.setPlainText("\n")
|
||||
self.setPlainText("")
|
||||
@@ -1001,7 +1001,7 @@ class GuiDocEditor(QTextEdit):
|
||||
We need to intercept a few key sequences:
|
||||
* The return and enter keys redirect here even if the search
|
||||
box has focus. Since we need these keys to continue search,
|
||||
we block any further interaction here while ithas focus.
|
||||
we block any further interaction here while it has focus.
|
||||
* The undo/redo/select all sequences bypass the docAction
|
||||
pathway from the menu, so we redirect them back from here.
|
||||
* We also handle automatic scrolling here.
|
||||
|
||||
@@ -83,7 +83,7 @@ class GuiDocHighlighter(QSyntaxHighlighter):
|
||||
|
||||
def initHighlighter(self):
|
||||
"""Initialise the syntax highlighter, setting all the colour
|
||||
rules and building the regexes.
|
||||
rules and building the RegExes.
|
||||
"""
|
||||
logger.debug("Setting up highlighting rules")
|
||||
|
||||
@@ -255,7 +255,7 @@ class GuiDocHighlighter(QSyntaxHighlighter):
|
||||
##
|
||||
|
||||
def rehighlightByType(self, theType):
|
||||
"""Loop through all blocks and rehighlight those of a given
|
||||
"""Loop through all blocks and re-highlight those of a given
|
||||
content type.
|
||||
"""
|
||||
qDoc = self.document()
|
||||
|
||||
@@ -456,7 +456,7 @@ class GuiDocViewer(QTextBrowser):
|
||||
theCursor.select(selMode)
|
||||
|
||||
if selMode == QTextCursor.BlockUnderCursor:
|
||||
# This selection mode also selects the preceding oaragraph
|
||||
# This selection mode also selects the preceding paragraph
|
||||
# separator, which we want to avoid.
|
||||
posS = theCursor.selectionStart()
|
||||
posE = theCursor.selectionEnd()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
novelWriter – GUI Novel Tree
|
||||
============================
|
||||
GUI classe for the main window novel tree
|
||||
GUI class for the main window novel tree
|
||||
|
||||
File History:
|
||||
Created: 2020-12-20 [1.1rc1] GuiNovelTree
|
||||
|
||||
@@ -281,7 +281,7 @@ class GuiOutlineToolBar(QToolBar):
|
||||
return
|
||||
|
||||
def populateNovelList(self):
|
||||
"""Relaod the content of the novel list.
|
||||
"""Reload the content of the novel list.
|
||||
"""
|
||||
self.novelValue.updateList(includeAll=True)
|
||||
return
|
||||
|
||||
@@ -432,7 +432,7 @@ class GuiProjectToolBar(QWidget):
|
||||
|
||||
@pyqtSlot(str)
|
||||
def _treeSelectionChanged(self, tHandle):
|
||||
"""Toggle the visibility of the new item enties for novel
|
||||
"""Toggle the visibility of the new item entries for novel
|
||||
documents. They should only be visible if novel documents can
|
||||
actually be added.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user