--- a/QTfrontend/model/ThemeModel.h Fri Oct 11 17:43:13 2013 +0200
+++ b/QTfrontend/model/ThemeModel.h Sat Jan 04 23:55:54 2014 +0400
@@ -45,14 +45,11 @@
int rowCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role) const;
+ private:
+ mutable QList<QMap<int, QVariant> > m_data;
+ mutable bool m_themesLoaded;
- public slots:
- /// reloads the themes from the DataManager
- void loadThemes();
-
-
- private:
- QList<QMap<int, QVariant> > m_data;
+ void loadThemes() const;
};
#endif // HEDGEWARS_THEMEMODEL_H