diff -r 63154a5e18d0 -r 6becda664299 UI/BrowserModel.py --- a/UI/BrowserModel.py Mon Nov 02 23:10:04 2015 +0100 +++ b/UI/BrowserModel.py Tue Nov 03 15:24:42 2015 +0100 @@ -636,7 +636,7 @@ .format(dict["@@Coding@@"].coding)) self._addItem(node, parentItem) if "@@Globals@@" in keys: - node = BrowserClassAttributesItem( + node = BrowserGlobalsItem( parentItem, dict["@@Globals@@"].globals, QCoreApplication.translate("BrowserModel", "Globals")) @@ -1740,6 +1740,22 @@ return BrowserItem.lessThan(self, other, column, order) +class BrowserGlobalsItem(BrowserClassAttributesItem): + """ + Class implementing the data structure for browser globals items. + """ + def __init__(self, parent, attributes, text, isClass=False): + """ + Constructor + + @param parent parent item + @param attributes list of attributes + @param text text to be shown by this item (string) + @param isClass flag indicating class attributes (boolean) + """ + BrowserClassAttributesItem.__init__(self, parent, attributes, text) + + class BrowserCodingItem(BrowserItem): """ Class implementing the data structure for browser coding items.