QIcon IconUtils::icon(const char *name) { #ifdef APP_LINUX QIcon icon = fromTheme(name); if (icon.isNull()) icon = fromResources(name); return icon; #else return fromResources(name); #endif }
QIcon IconUtils::icon(const QString &name) { #if defined(APP_MAC) || defined(APP_WIN) return fromResources(name); #else QIcon icon = fromTheme(name); if (icon.isNull()) icon = fromResources(name); return icon; #endif }