Crossfire Server, Trunk
|
#include <AssetModel.h>
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 251 of file AssetModel.cpp.
|
protected |
Definition at line 288 of file AssetModel.cpp.
References myEngine, and myFilter.
Referenced by filterAcceptsRow().
|
inline |
Definition at line 83 of file AssetModel.h.
References myFilter.
Referenced by CREResourcesWindow::onQuickFilter(), and setFilter().
|
overrideprotectedvirtual |
Definition at line 262 of file AssetModel.cpp.
References altar_valkyrie::accept(), acceptItem(), c, disinfect::count, npc_dialog::index, myCachedFilter, and myFilter.
void ScriptFilterAssetModel::setFilter | ( | const QString & | filter | ) |
Definition at line 256 of file AssetModel.cpp.
References filter(), myCachedFilter, and myFilter.
Referenced by CREResourcesWindow::setFilter().
|
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().