equal
deleted
inserted
replaced
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 |