1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-27 12:39:40 +00:00
openmw-tes3mp/components/fileorderlist/masterproxymodel.cpp

17 lines
406 B
C++
Raw Normal View History

2013-08-17 02:12:30 +00:00
#include "masterproxymodel.hpp"
MasterProxyModel::MasterProxyModel(QObject *parent, QAbstractTableModel* model) :
2013-08-17 02:12:30 +00:00
QSortFilterProxyModel(parent)
{
setFilterRegExp(QString("game"));
setFilterRole (Qt::UserRole);
if (model)
setSourceModel (model);
2013-08-17 02:12:30 +00:00
}
QVariant MasterProxyModel::data(const QModelIndex &index, int role) const
{
return QSortFilterProxyModel::data (index, role);
}