Exemplo n.º 1
0
 def __init__(self, layer):
     icon = QtGui.QIcon(os.path.dirname(__file__) + "/../images/layer.png")
     TreeItem.__init__(self, layer, icon)
     self.setFlags(QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsDropEnabled)
Exemplo n.º 2
0
 def __init__(self, catalog):
     self.catalog = catalog
     icon = QtGui.QIcon(os.path.dirname(__file__) + "/../images/gwc.png")
     TreeItem.__init__(self, None, icon, "GeoWebCache layers")
     self.setFlags(QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsDropEnabled)