Some minor tweaks, and added option for showing full path
This commit is contained in:
@@ -132,6 +132,9 @@ class GuiDocEditor(QTextEdit):
|
||||
|
||||
logger.debug("DocEditor initialisation complete")
|
||||
|
||||
# Connect Functions
|
||||
self.setSelectedHandle = self.theParent.treeView.setSelectedHandle
|
||||
|
||||
return
|
||||
|
||||
def clearEditor(self):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -71,6 +71,9 @@ class GuiDocViewer(QTextBrowser):
|
||||
|
||||
logger.debug("DocViewer initialisation complete")
|
||||
|
||||
# Connect Functions
|
||||
self.setSelectedHandle = self.theParent.treeView.setSelectedHandle
|
||||
|
||||
return
|
||||
|
||||
def clearViewer(self):
|
||||
|
||||
Reference in New Issue
Block a user