openmw-tes3coop/components/esxselector/model/masterproxymodel.cpp

17 lines
426 B
C++
Raw Normal View History

2013-08-17 02:12:30 +00:00
#include "masterproxymodel.hpp"
EsxModel::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 EsxModel::MasterProxyModel::data(const QModelIndex &index, int role) const
2013-08-17 02:12:30 +00:00
{
return QSortFilterProxyModel::data (index, role);
}