mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
17 lines
426 B
C++
17 lines
426 B
C++
#include "masterproxymodel.hpp"
|
|
|
|
EsxModel::MasterProxyModel::MasterProxyModel(QObject *parent, QAbstractTableModel* model) :
|
|
QSortFilterProxyModel(parent)
|
|
{
|
|
setFilterRegExp(QString("game"));
|
|
setFilterRole (Qt::UserRole);
|
|
|
|
if (model)
|
|
setSourceModel (model);
|
|
}
|
|
|
|
QVariant EsxModel::MasterProxyModel::data(const QModelIndex &index, int role) const
|
|
{
|
|
return QSortFilterProxyModel::data (index, role);
|
|
}
|