1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-04-03 10:20:10 +00:00
OpenMW/components/fileorderlist/masterproxymodel.cpp

17 lines
436 B
C++

#include "masterproxymodel.hpp"
FileOrderList::MasterProxyModel::MasterProxyModel(QObject *parent, QAbstractTableModel* model) :
QSortFilterProxyModel(parent)
{
setFilterRegExp(QString("game"));
setFilterRole (Qt::UserRole);
if (model)
setSourceModel (model);
}
QVariant FileOrderList::MasterProxyModel::data(const QModelIndex &index, int role) const
{
return QSortFilterProxyModel::data (index, role);
}