QTfrontend/model/ThemeModel.h
changeset 9745 258c320256dc
parent 9080 9b42757d7e71
child 9998 736015b847e3
--- a/QTfrontend/model/ThemeModel.h	Tue Dec 03 23:54:58 2013 +0400
+++ b/QTfrontend/model/ThemeModel.h	Wed Dec 04 00:19:42 2013 +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