QTfrontend/model/MapModel.h
changeset 11762 6874644a2d00
parent 11749 ac58a063d26a
--- a/QTfrontend/model/MapModel.h	Thu Apr 28 17:42:43 2016 +0200
+++ b/QTfrontend/model/MapModel.h	Thu Apr 28 18:32:50 2016 +0200
@@ -25,6 +25,7 @@
 #define HEDGEWARS_MAPMODEL_H
 
 #include <QStandardItemModel>
+#include <QSortFilterProxyModel>
 #include <QStringList>
 #include <QTextStream>
 #include <QHash>
@@ -105,6 +106,8 @@
         /// Loads the maps
         bool loadMaps();
 
+        /// returns this model but excluding DLC themes
+        QSortFilterProxyModel * withoutDLC();
 
     private:
         /// map index lookup table. QPair<int, int> contains: <column, index>
@@ -112,6 +115,7 @@
         QHash<QString, int> m_mapIndexes;
         MapType m_maptype;
         bool m_loaded;
+        QSortFilterProxyModel * m_filteredNoDLC;
 
         /**
          * @brief Creates a QStandardItem, that holds the map info and item appearance.