Some completeness in logger output
This commit is contained in:
+2
-2
@@ -477,7 +477,7 @@ class GuiDocViewDetails(QScrollArea):
|
||||
def __init__(self, theParent):
|
||||
QScrollArea.__init__(self, theParent)
|
||||
|
||||
logger.debug("Initialising DocViewDetails ...")
|
||||
logger.debug("Initialising GuiDocViewDetails ...")
|
||||
self.mainConf = nw.CONFIG
|
||||
self.theParent = theParent
|
||||
self.theProject = theParent.theProject
|
||||
@@ -508,7 +508,7 @@ class GuiDocViewDetails(QScrollArea):
|
||||
self.setWidgetResizable(True)
|
||||
self.setMinimumHeight(self.mainConf.pxInt(50))
|
||||
|
||||
logger.debug("DocViewDetails initialisation complete")
|
||||
logger.debug("GuiDocViewDetails initialisation complete")
|
||||
|
||||
return
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ class GuiDocHighlighter(QSyntaxHighlighter):
|
||||
def __init__(self, theDoc, theParent):
|
||||
QSyntaxHighlighter.__init__(self, theDoc)
|
||||
|
||||
logger.debug("Initialising DocHighlighter ...")
|
||||
logger.debug("Initialising GuiDocHighlighter ...")
|
||||
self.mainConf = nw.CONFIG
|
||||
self.theDoc = theDoc
|
||||
self.theParent = theParent
|
||||
@@ -70,7 +70,7 @@ class GuiDocHighlighter(QSyntaxHighlighter):
|
||||
|
||||
self.initHighlighter()
|
||||
|
||||
logger.debug("DocHighlighter initialisation complete")
|
||||
logger.debug("GuiDocHighlighter initialisation complete")
|
||||
|
||||
return
|
||||
|
||||
|
||||
@@ -525,9 +525,13 @@ class GuiProjectTree(QTreeWidget):
|
||||
always make sure items with a parent have had their parent item
|
||||
sent first.
|
||||
"""
|
||||
logger.debug("Building project tree ...")
|
||||
self.clear()
|
||||
iCount = 0
|
||||
for nwItem in self.theProject.getProjectItems():
|
||||
iCount += 1
|
||||
self._addTreeItem(nwItem)
|
||||
logger.debug("%d items added to project tree" % iCount)
|
||||
return True
|
||||
|
||||
def getSelectedHandle(self):
|
||||
|
||||
+2
-2
@@ -44,7 +44,7 @@ class GuiMainStatus(QStatusBar):
|
||||
def __init__(self, theParent):
|
||||
QStatusBar.__init__(self, theParent)
|
||||
|
||||
logger.debug("Initialising MainStatus ...")
|
||||
logger.debug("Initialising GuiMainStatus ...")
|
||||
|
||||
self.mainConf = nw.CONFIG
|
||||
self.theParent = theParent
|
||||
@@ -123,7 +123,7 @@ class GuiMainStatus(QStatusBar):
|
||||
self.sessionTimer.timeout.connect(self._updateTime)
|
||||
self.sessionTimer.start()
|
||||
|
||||
logger.debug("MainStatus initialisation complete")
|
||||
logger.debug("GuiMainStatus initialisation complete")
|
||||
|
||||
self.clearStatus()
|
||||
|
||||
|
||||
+2
-2
@@ -750,11 +750,11 @@ class GuiIcons:
|
||||
self.mainConf.iconPath, self.fbackName, "%s-dark.svg" % iconKey
|
||||
)
|
||||
if path.isfile(fbackIcon):
|
||||
logger.verbose("Loading icon '%s' from fallback theme" % iconKey)
|
||||
logger.verbose("Loading icon '%s' from fallback theme (dark mode)" % iconKey)
|
||||
return QIcon(fbackIcon)
|
||||
fbackIcon = path.join(self.mainConf.iconPath, self.fbackName, "%s.svg" % iconKey)
|
||||
if path.isfile(fbackIcon):
|
||||
logger.verbose("Loading icon '%s' from fallback theme" % iconKey)
|
||||
logger.verbose("Loading icon '%s' from fallback theme (light mode)" % iconKey)
|
||||
return QIcon(fbackIcon)
|
||||
|
||||
# Give up and return an empty icon
|
||||
|
||||
Reference in New Issue
Block a user