109 @param name name of the translation engine |
109 @param name name of the translation engine |
110 @type str |
110 @type str |
111 @return engine icon |
111 @return engine icon |
112 @rtype QIcon |
112 @rtype QIcon |
113 """ |
113 """ |
114 iconSuffix = "dark" if e5App().usesDarkPalette() else "light" |
114 iconSuffix = "dark" if ericApp().usesDarkPalette() else "light" |
115 if name in supportedEngineNames(): |
115 if name in supportedEngineNames(): |
116 icon = UI.PixmapCache.getIcon(os.path.join( |
116 icon = UI.PixmapCache.getIcon(os.path.join( |
117 os.path.dirname(__file__), "..", "icons", "engines", |
117 os.path.dirname(__file__), "..", "icons", "engines", |
118 "{0}-{1}".format(name, iconSuffix))) |
118 "{0}-{1}".format(name, iconSuffix))) |
119 if icon.isNull(): |
119 if icon.isNull(): |