diff options
author | Albert Astals Cid <aacid@kde.org> | 2018-08-16 15:42:41 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2018-08-20 21:42:58 +0000 |
commit | 0e7724079f1eae283714ae12769d1372b8f85659 (patch) | |
tree | c07ae322b1b0012795be07c7ce485e63fc273ab0 /src/gui/image/qiconloader_p.h | |
parent | 67cc8fea106c35c7ca75bf476667d07b3bbf3257 (diff) |
Allow setting the QIcon fallback theme
This allows apps that know their icons are
in a given icon theme to set that theme as
fallback, so in case the user theme does
not include them, the icons can still be found.
This solves the problem of missing icons
that often happens when running KDE applications
on a GNOME desktop.
Change-Id: I4e5543d598012352a29ff79dab0357506d986b6d
Reviewed-by: Dominik Haumann <dhaumann@kde.org>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/gui/image/qiconloader_p.h')
-rw-r--r-- | src/gui/image/qiconloader_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/image/qiconloader_p.h b/src/gui/image/qiconloader_p.h index 746e871fb1..fac18b5d79 100644 --- a/src/gui/image/qiconloader_p.h +++ b/src/gui/image/qiconloader_p.h @@ -177,6 +177,8 @@ public: QString themeName() const { return m_userTheme.isEmpty() ? m_systemTheme : m_userTheme; } void setThemeName(const QString &themeName); + QString fallbackThemeName() const; + void setFallbackThemeName(const QString &themeName); QIconTheme theme() { return themeList.value(themeName()); } void setThemeSearchPath(const QStringList &searchPaths); QStringList themeSearchPaths() const; @@ -200,6 +202,7 @@ private: bool m_initialized; mutable QString m_userTheme; + mutable QString m_userFallbackTheme; mutable QString m_systemTheme; mutable QStringList m_iconDirs; mutable QHash <QString, QIconTheme> themeList; |