QTfrontend/model/ThemeModel.h
changeset 9745 258c320256dc
parent 9080 9b42757d7e71
child 9998 736015b847e3
equal deleted inserted replaced
9744:1ee4842a9c86 9745:258c320256dc
    43         explicit ThemeModel(QObject *parent = 0);
    43         explicit ThemeModel(QObject *parent = 0);
    44 
    44 
    45         int rowCount(const QModelIndex &parent = QModelIndex()) const;
    45         int rowCount(const QModelIndex &parent = QModelIndex()) const;
    46         QVariant data(const QModelIndex &index, int role) const;
    46         QVariant data(const QModelIndex &index, int role) const;
    47 
    47 
       
    48     private:
       
    49         mutable QList<QMap<int, QVariant> > m_data;
       
    50         mutable bool m_themesLoaded;
    48 
    51 
    49     public slots:
    52         void loadThemes() const;
    50         /// reloads the themes from the DataManager
       
    51         void loadThemes();
       
    52 
       
    53 
       
    54     private:
       
    55         QList<QMap<int, QVariant> > m_data;
       
    56 };
    53 };
    57 
    54 
    58 #endif // HEDGEWARS_THEMEMODEL_H
    55 #endif // HEDGEWARS_THEMEMODEL_H