示例#1
0
 def fillTree(self):
     self.tree.clear()
     elements = SextanteLog.getLogEntries()
     for category in elements.keys():
         groupItem = QTreeWidgetItem()
         groupItem.setText(0,category)
         groupItem.setIcon(0, self.groupIcon)
         for entry in elements[category]:
             item = TreeLogEntryItem(entry, category==SextanteLog.LOG_ALGORITHM)
             item.setIcon(0, self.keyIcon)
             groupItem.insertChild(0,item)
         self.tree.addTopLevelItem(groupItem)
示例#2
0
 def fillTree(self):
     self.tree.clear()
     elements = SextanteLog.getLogEntries()
     for category in elements.keys():
         groupItem = QTreeWidgetItem()
         groupItem.setText(0,category)
         groupItem.setIcon(0, self.groupIcon)
         for entry in elements[category]:
             item = TreeLogEntryItem(entry, category==SextanteLog.LOG_ALGORITHM)
             item.setIcon(0, self.keyIcon)
             groupItem.insertChild(0,item)
         self.tree.addTopLevelItem(groupItem)