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