diff --git a/src/gui/image/qiconloader.cpp b/src/gui/image/qiconloader.cpp index 077eefacb3c..aed173d76e5 100644 --- a/src/gui/image/qiconloader.cpp +++ b/src/gui/image/qiconloader.cpp @@ -142,6 +142,11 @@ void QIconLoader::invalidateKey() QIconPrivate::clearIconCache(); } +QString QIconLoader::themeName() const +{ + return m_userTheme.isEmpty() ? m_systemTheme : m_userTheme; +} + void QIconLoader::setThemeName(const QString &themeName) { if (m_userTheme == themeName) diff --git a/src/gui/image/qiconloader_p.h b/src/gui/image/qiconloader_p.h index fbb21073ce3..0245123a833 100644 --- a/src/gui/image/qiconloader_p.h +++ b/src/gui/image/qiconloader_p.h @@ -146,7 +146,7 @@ public: QThemeIconInfo loadIcon(const QString &iconName) const; uint themeKey() const { return m_themeKey; } - QString themeName() const { return m_userTheme.isEmpty() ? m_systemTheme : m_userTheme; } + QString themeName() const; void setThemeName(const QString &themeName); QString fallbackThemeName() const; void setFallbackThemeName(const QString &themeName);