Identation

This commit is contained in:
Nyall Dawson 2017-09-20 18:41:42 +10:00
parent 6e1c5c4d75
commit ef97063029

View File

@ -103,10 +103,10 @@ class ProcessingDropHandler(QgsCustomDropHandler):
class ProcessingModelItem(QgsDataItem):
def __init__(self, parent, name, path):
super(ProcessingModelItem, self).__init__(QgsDataItem.Custom,parent,name,path)
self.setState(QgsDataItem.Populated ) #no children
super(ProcessingModelItem, self).__init__(QgsDataItem.Custom, parent, name, path)
self.setState(QgsDataItem.Populated) # no children
self.setIconName(":/images/themes/default/processingModel.svg")
self.setToolTip(QDir.toNativeSeparators(path) )
self.setToolTip(QDir.toNativeSeparators(path))
def hasDragEnabled(self):
return True
@ -159,6 +159,7 @@ class ProcessingDataItemProvider(QgsDataItemProvider):
return ProcessingModelItem(parentItem, alg.name(), path)
return None
class ProcessingPlugin(object):
def __init__(self, iface):