1234567891011121314151617181920212223242526 |
- $OpenBSD: patch-src_iconutils_cpp,v 1.1 2014/12/01 14:35:59 dcoppa Exp $
- Use the Adwaita icon theme unconditionally: fixes a problem with
- minitube GUI not having icons when executed outside of a Desktop
- Environment
- Do not use symbolic icons
- --- src/iconutils.cpp.orig Mon Dec 1 05:23:52 2014
- +++ src/iconutils.cpp Mon Dec 1 05:25:00 2014
- @@ -21,12 +21,8 @@ $END_LICENSE */
- #include "iconutils.h"
-
- QIcon IconUtils::fromTheme(const QString &name) {
- - const QLatin1String symbolic("-symbolic");
- - if (name.endsWith(symbolic)) return QIcon::fromTheme(name);
- - QIcon icon;
- - icon = QIcon::fromTheme(name + symbolic);
- - if (icon.isNull()) return QIcon::fromTheme(name);
- - return icon;
- + QIcon::setThemeName("Adwaita");
- + return QIcon::fromTheme(name);
- }
-
- QIcon IconUtils::fromResources(const QString &name) {
|