2013-02-19 14:58:01 +00:00
|
|
|
#ifndef PLUGINSPROXYMODEL_HPP
|
|
|
|
#define PLUGINSPROXYMODEL_HPP
|
|
|
|
|
|
|
|
#include <QSortFilterProxyModel>
|
|
|
|
|
|
|
|
class QVariant;
|
2013-08-17 02:20:48 +00:00
|
|
|
class QAbstractTableModel;
|
2013-02-19 14:58:01 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
namespace EsxModel
|
2013-02-19 14:58:01 +00:00
|
|
|
{
|
2013-09-07 20:57:40 +00:00
|
|
|
class ContentModel;
|
2013-08-17 10:37:23 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
class PluginsProxyModel : public QSortFilterProxyModel
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2013-08-17 10:37:23 +00:00
|
|
|
|
2013-08-18 20:11:29 +00:00
|
|
|
public:
|
2013-02-19 14:58:01 +00:00
|
|
|
|
2013-09-07 20:57:40 +00:00
|
|
|
explicit PluginsProxyModel(QObject *parent = 0, ContentModel *model = 0);
|
2013-08-18 20:11:29 +00:00
|
|
|
~PluginsProxyModel();
|
|
|
|
|
|
|
|
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
2013-09-07 20:57:40 +00:00
|
|
|
|
|
|
|
bool removeRows(int row, int count, const QModelIndex &parent);
|
2013-08-18 20:11:29 +00:00
|
|
|
};
|
|
|
|
}
|
2013-02-19 14:58:01 +00:00
|
|
|
|
|
|
|
#endif // PLUGINSPROXYMODEL_HPP
|