QTfrontend/model/ThemeModel.cpp
changeset 13247 4df9d8cedf7f
parent 11757 6874644a2d00
child 13248 b0022324fb4e
--- a/QTfrontend/model/ThemeModel.cpp	Sun Mar 18 03:24:49 2018 +0100
+++ b/QTfrontend/model/ThemeModel.cpp	Sun Mar 18 14:38:48 2018 +0100
@@ -35,15 +35,13 @@
     m_filteredNoDLC = NULL;
 }
 
-QSortFilterProxyModel * ThemeModel::withoutDLC()
+ThemeFilterProxyModel * ThemeModel::withoutDLC()
 {
     if (m_filteredNoDLC == NULL)
     {
-        m_filteredNoDLC = new QSortFilterProxyModel(this);
+        m_filteredNoDLC = new ThemeFilterProxyModel(this);
         m_filteredNoDLC->setSourceModel(this);
-        // filtering based on IsDlcRole would be nicer
-        // but seems this model can only do string-based filtering :|
-        m_filteredNoDLC->setFilterRegExp(QRegExp("^[^*]"));
+        m_filteredNoDLC->setFilterDLC(true);
     }
     return m_filteredNoDLC;
 }