mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
a14e0b32d8
Added ./view Removed ./utils and ./model/esm Relocated code accordingly.
17 lines
432 B
C++
17 lines
432 B
C++
#include "masterproxymodel.hpp"
|
|
|
|
EsxSelector::MasterProxyModel::MasterProxyModel(QObject *parent, QAbstractTableModel* model) :
|
|
QSortFilterProxyModel(parent)
|
|
{
|
|
setFilterRegExp(QString("game"));
|
|
setFilterRole (Qt::UserRole);
|
|
|
|
if (model)
|
|
setSourceModel (model);
|
|
}
|
|
|
|
QVariant EsxSelector::MasterProxyModel::data(const QModelIndex &index, int role) const
|
|
{
|
|
return QSortFilterProxyModel::data (index, role);
|
|
}
|