Fixed creating new project, opening and saving of projects.

This commit is contained in:
Veronica K. B. Olsen
2019-05-03 21:56:51 +02:00
parent 665fbb04fe
commit 116150ef01
3 changed files with 76 additions and 37 deletions
+15 -1
View File
@@ -39,9 +39,14 @@ class GuiDocTree(QTreeWidget):
self.debugGUI = self.mainConf.debugGUI
self.theParent = theParent
self.theProject = theProject
self.theMap = {}
# Tree Settings
self.theMap = None
self.orphRoot = None
self.clearTree()
# Build GUI
self.setIconSize(QSize(13,13))
self.setExpandsOnDoubleClick(True)
self.setIndentation(13)
@@ -67,6 +72,15 @@ class GuiDocTree(QTreeWidget):
return
def clearTree(self):
self.clear()
self.theMap = {}
self.orphRoot = None
return
def newTreeItem(self, itemType, itemClass):
pHandle = self.getSelectedHandle()