42 def __init__(self, parent=None, nopopulate=False): |
42 def __init__(self, parent=None, nopopulate=False): |
43 """ |
43 """ |
44 Constructor |
44 Constructor |
45 |
45 |
46 @param parent reference to parent object (QObject) |
46 @param parent reference to parent object (QObject) |
47 @keyparam nopopulate flag indicating to not populate the model |
47 @param nopopulate flag indicating to not populate the model |
48 (boolean) |
48 (boolean) |
49 """ |
49 """ |
50 super(BrowserModel, self).__init__(parent) |
50 super(BrowserModel, self).__init__(parent) |
51 |
51 |
52 self.progDir = None |
52 self.progDir = None |
1467 self.itemData[0] = "{0}({1})".format( |
1467 self.itemData[0] = "{0}({1})".format( |
1468 name, ", ".join(self._classObject.parameters)) |
1468 name, ", ".join(self._classObject.parameters)) |
1469 if self._classObject.annotation: |
1469 if self._classObject.annotation: |
1470 self.itemData[0] = "{0} {1}".format( |
1470 self.itemData[0] = "{0} {1}".format( |
1471 self.itemData[0], self._classObject.annotation) |
1471 self.itemData[0], self._classObject.annotation) |
1472 ## if no defaults are wanted |
1472 #- if no defaults are wanted |
1473 ## ....format(name, |
1473 #- ....format(name, |
1474 ## ", ".join([e.split('=')[0].strip() \ |
1474 #- ", ".join([e.split('=')[0].strip() |
1475 ## for e in self._classObject.parameters])) |
1475 #- for e in self._classObject.parameters])) |
1476 elif self.ismodule: |
1476 elif self.ismodule: |
1477 self.icon = UI.PixmapCache.getIcon("module") |
1477 self.icon = UI.PixmapCache.getIcon("module") |
1478 elif self.isenum: |
1478 elif self.isenum: |
1479 self.icon = UI.PixmapCache.getIcon("attribute") |
1479 self.icon = UI.PixmapCache.getIcon("attribute") |
1480 else: |
1480 else: |