93 |
93 |
94 def getAppIcon(self, name): |
94 def getAppIcon(self, name): |
95 """ |
95 """ |
96 Public method to get an icon. |
96 Public method to get an icon. |
97 |
97 |
98 @param name name of the icon file (string) |
98 @param name name of the icon file |
99 @return icon (QIcon) |
99 @type str |
|
100 @return icon |
|
101 @rtype QIcon |
100 """ |
102 """ |
101 return UI.PixmapCache.getIcon(os.path.join( |
103 return UI.PixmapCache.getIcon(os.path.join( |
102 os.path.dirname(__file__), "icons", |
104 os.path.dirname(__file__), "icons", |
103 "{0}-{1}".format(name, self.__iconSuffix) |
105 "{0}-{1}".format(name, self.__iconSuffix) |
104 )) |
106 )) |