src/gui/image/qiconloader_p.h
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
   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;