Go to the documentation of this file.
16 #include <QAbstractItemModel>
18 #include <QSortFilterProxyModel>
36 virtual QModelIndex
index(
int row,
int column,
const QModelIndex&
parent)
const override;
37 virtual QModelIndex
parent(
const QModelIndex&
index)
const override;
39 virtual QVariant
data(
const QModelIndex&
index,
int role)
const override;
40 virtual QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const override;
41 virtual Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
44 virtual QMimeData *
mimeData(
const QModelIndexList &indexes)
const override;
63 virtual QVariant
data(
const QModelIndex&
index,
int role)
const override;
66 virtual bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent)
const override;
86 virtual bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent)
const override;
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override
virtual Qt::ItemFlags flags(const QModelIndex &index) const override
void setFilter(const QString &filter)
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override
std::map< AssetWrapper *, std::string > myCachedHints
virtual bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override
void setFilter(AssetWrapper *asset)
bool acceptItem(AssetWrapper *item) const
virtual QVariant data(const QModelIndex &index, int role) const override
ScriptFilterAssetModel(AssetModel *model, QScriptEngine *engine, QObject *parent)
virtual QVariant data(const QModelIndex &index, int role) const override
virtual int columnCount(const QModelIndex &parent) const override
UseFilterAssetModel(QObject *parent)
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
virtual QModelIndex parent(const QModelIndex &index) const override
const QString & filter() const
virtual int rowCount(const QModelIndex &parent) const override
std::map< AssetWrapper *, bool > myCachedFilter
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const override
std::map< AssetWrapper *, bool > myCachedFilter
void assetModified(AssetWrapper *asset, AssetWrapper::ChangeType type, int extra)
AssetModel(AssetWrapper *assets, QObject *parent)
virtual QMimeData * mimeData(const QModelIndexList &indexes) const override
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const override