Created masterproxylist class
parent
2bc56d0b5c
commit
7389507eb5
@ -0,0 +1,11 @@
|
||||
#include "masterproxymodel.hpp"
|
||||
|
||||
MasterProxyModel::MasterProxyModel(QObject *parent) :
|
||||
QSortFilterProxyModel(parent)
|
||||
{
|
||||
}
|
||||
|
||||
QVariant MasterProxyModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
return QSortFilterProxyModel::data (index, role);
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
#ifndef MASTERPROXYMODEL_HPP
|
||||
#define MASTERPROXYMODEL_HPP
|
||||
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
class MasterProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit MasterProxyModel(QObject *parent = 0);
|
||||
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
};
|
||||
|
||||
#endif // MASTERPROXYMODEL_HPP
|
Loading…
Reference in New Issue