openmw-tes3coop/components/fileorderlist/model/pluginsproxymodel.cpp

21 lines
456 B
C++
Raw Normal View History

#include "pluginsproxymodel.hpp"
PluginsProxyModel::PluginsProxyModel(QObject *parent, QAbstractTableModel *model) :
QSortFilterProxyModel(parent)
{
setFilterRegExp(QString("addon"));
setFilterRole (Qt::UserRole);
if (model)
setSourceModel (model);
}
PluginsProxyModel::~PluginsProxyModel()
{
}
2013-08-17 02:12:30 +00:00
QVariant PluginsProxyModel::data(const QModelIndex &index, int role) const
{
2013-08-17 02:12:30 +00:00
return QSortFilterProxyModel::data (index, role);
}