Example #1
0
 def onBundleItemAdded(self, bundle_item):
     bundle_item_node = BundleItemTreeNode(bundle_item)
     bundle_node = self.getManagedObjectNode(bundle_item.bundle.uuid)
     icon = self.resources().get_icon("bundle-item-%s" % bundle_item.type())
     bundle_item_node.setIcon(icon)
     self.bundleModel.appendBundleItem(bundle_item_node, bundle_node)
     self.bundleItemAdded.emit(bundle_item_node)
Example #2
0
 def onBundleAdded(self, bundle):
     bundle_node = BundleItemTreeNode(bundle)
     icon = self.resources().get_icon("bundle-item-%s" % bundle.type())
     bundle_node.setIcon(icon)
     self.bundleModel.appendBundle(bundle_node)
     self.bundleAdded.emit(bundle_node)