Crossfire Server, Trunk
|
#include <AssetModel.h>
Public Member Functions | |
virtual QVariant | data (const QModelIndex &index, int role) const override |
void | setFilter (AssetWrapper *asset) |
UseFilterAssetModel (QObject *parent) | |
Protected Member Functions | |
virtual bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
Protected Attributes | |
AssetWrapper * | myAsset |
std::map< AssetWrapper *, bool > | myCachedFilter |
std::map< AssetWrapper *, std::string > | myCachedHints |
Proxy model filtering based on whether an asset uses a specific asset or not.
Definition at line 58 of file AssetModel.h.
UseFilterAssetModel::UseFilterAssetModel | ( | QObject * | parent | ) |
Definition at line 194 of file AssetModel.cpp.
|
overridevirtual |
Definition at line 238 of file AssetModel.cpp.
References navar-midane_time::data, npc_dialog::index, and myCachedHints.
|
overrideprotectedvirtual |
Definition at line 204 of file AssetModel.cpp.
References c, AssetWrapper::ChildrenMayUse, disinfect::count, npc_dialog::index, myAsset, myCachedFilter, myCachedHints, and AssetWrapper::Uses.
void UseFilterAssetModel::setFilter | ( | AssetWrapper * | asset | ) |
Definition at line 197 of file AssetModel.cpp.
References myAsset, myCachedFilter, and myCachedHints.
Referenced by AssetUseTree::setFilter(), and CREFacePanel::updateItem().
|
protected |
Definition at line 68 of file AssetModel.h.
Referenced by filterAcceptsRow(), and setFilter().
|
mutableprotected |
Definition at line 69 of file AssetModel.h.
Referenced by filterAcceptsRow(), and setFilter().
|
mutableprotected |
Definition at line 70 of file AssetModel.h.
Referenced by data(), filterAcceptsRow(), and setFilter().