Some minor tweaks, and added option for showing full path

This commit is contained in:
Veronica K. B. Olsen
2020-05-01 21:30:18 +02:00
parent bf3ecfbef4
commit b44669a3b5
6 changed files with 18 additions and 6 deletions
+3
View File
@@ -132,6 +132,9 @@ class GuiDocEditor(QTextEdit):
logger.debug("DocEditor initialisation complete")
# Connect Functions
self.setSelectedHandle = self.theParent.treeView.setSelectedHandle
return
def clearEditor(self):
+2 -2
View File
@@ -85,7 +85,7 @@ class GuiDocTitleBar(QLabel):
if tHandle is None:
return False
if True:
if self.mainConf.showFullPath:
tTitle = []
tTree = self.theProject.getItemPath(tHandle)
for aHandle in reversed(tTree):
@@ -111,7 +111,7 @@ class GuiDocTitleBar(QLabel):
"""Capture a click on the title and ensure that the item is
selected in the project tree.
"""
self.theParent.theParent.treeView.setSelectedHandle(self.theHandle)
self.theParent.setSelectedHandle(self.theHandle)
return
# END Class GuiDocTitleBar
+3
View File
@@ -71,6 +71,9 @@ class GuiDocViewer(QTextBrowser):
logger.debug("DocViewer initialisation complete")
# Connect Functions
self.setSelectedHandle = self.theParent.treeView.setSelectedHandle
return
def clearViewer(self):