![]() |
Crossfire Resources Editor
|
Proxy model filtering based on user-written filter, used in the main resource view. More...
#include <AssetModel.h>
Inheritance diagram for ScriptFilterAssetModel:
Collaboration diagram for ScriptFilterAssetModel:Public Member Functions | |
| const QString & | filter () const |
| ScriptFilterAssetModel (AssetModel *model, QScriptEngine *engine, QObject *parent) | |
| void | setFilter (const QString &filter) |
Protected Member Functions | |
| bool | acceptItem (AssetWrapper *item) const |
| virtual bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
Protected Attributes | |
| std::map< AssetWrapper *, bool > | myCachedFilter |
| QScriptEngine * | myEngine |
| QString | myFilter |
Proxy model filtering based on user-written filter, used in the main resource view.
Definition at line 78 of file AssetModel.h.
| ScriptFilterAssetModel::ScriptFilterAssetModel | ( | AssetModel * | model, |
| QScriptEngine * | engine, | ||
| QObject * | parent | ||
| ) |
Definition at line 258 of file AssetModel.cpp.
|
protected |
Definition at line 295 of file AssetModel.cpp.
References myEngine, and myFilter.
Referenced by filterAcceptsRow().
Here is the caller graph for this function:
|
inline |
Definition at line 83 of file AssetModel.h.
References myFilter.
Referenced by CREResourcesWindow::onQuickFilter(), and setFilter().
Here is the caller graph for this function:
|
overrideprotectedvirtual |
Definition at line 269 of file AssetModel.cpp.
References acceptItem(), myCachedFilter, and myFilter.
Here is the call graph for this function:| void ScriptFilterAssetModel::setFilter | ( | const QString & | filter | ) |
Definition at line 263 of file AssetModel.cpp.
References filter(), myCachedFilter, and myFilter.
Referenced by CREResourcesWindow::setFilter().
Here is the call graph for this function:
Here is the caller graph for this function:
|
mutableprotected |
Definition at line 91 of file AssetModel.h.
Referenced by filterAcceptsRow(), and setFilter().
|
protected |
Definition at line 89 of file AssetModel.h.
Referenced by acceptItem().
|
protected |
Definition at line 90 of file AssetModel.h.
Referenced by acceptItem(), filter(), filterAcceptsRow(), and setFilter().