From 0e7724079f1eae283714ae12769d1372b8f85659 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 16 Aug 2018 15:42:41 +0200 Subject: 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 Reviewed-by: Shawn Rutledge --- src/gui/image/qicon.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/image/qicon.h') diff --git a/src/gui/image/qicon.h b/src/gui/image/qicon.h index 653ba6fda4..6a4fc8927a 100644 --- a/src/gui/image/qicon.h +++ b/src/gui/image/qicon.h @@ -124,6 +124,9 @@ public: static QString themeName(); static void setThemeName(const QString &path); + static QString fallbackThemeName(); + static void setFallbackThemeName(const QString &name); + Q_DUMMY_COMPARISON_OPERATOR(QIcon) private: -- cgit v1.2.3