src/gui/image/qiconloader_p.h
branchRCL_3
changeset 8 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 8:3f74d0d4af4c
   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;