167 QStringList themeSearchPaths() const; |
167 QStringList themeSearchPaths() const; |
168 QIconDirInfo dirInfo(int dirindex); |
168 QIconDirInfo dirInfo(int dirindex); |
169 static QIconLoader *instance(); |
169 static QIconLoader *instance(); |
170 void updateSystemTheme(); |
170 void updateSystemTheme(); |
171 void invalidateKey() { m_themeKey++; } |
171 void invalidateKey() { m_themeKey++; } |
|
172 void ensureInitialized(); |
172 |
173 |
173 private: |
174 private: |
174 QThemeIconEntries findIconHelper(const QString &themeName, |
175 QThemeIconEntries findIconHelper(const QString &themeName, |
175 const QString &iconName, |
176 const QString &iconName, |
176 QStringList &visited) const; |
177 QStringList &visited) const; |
177 uint m_themeKey; |
178 uint m_themeKey; |
178 bool m_supportsSvg; |
179 bool m_supportsSvg; |
|
180 bool m_initialized; |
179 |
181 |
180 mutable QString m_userTheme; |
182 mutable QString m_userTheme; |
181 mutable QString m_systemTheme; |
183 mutable QString m_systemTheme; |
182 mutable QStringList m_iconDirs; |
184 mutable QStringList m_iconDirs; |
183 mutable QHash <QString, QIconTheme> themeList; |
185 mutable QHash <QString, QIconTheme> themeList; |