Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
FilterTreeModel Class Reference

#include <filter_tree_model.h>

Inheritance diagram for FilterTreeModel:
[legend]
Collaboration diagram for FilterTreeModel:
[legend]

Public Slots

void addFilter (const CardFilter *f)
void removeFilter (const CardFilter *f)
void clearFiltersOfType (CardFilter::Attr filterType)
QList< const CardFilter * > getFiltersOfType (CardFilter::Attr filterType) const
QList< const CardFilter * > allFilters () const

Public Member Functions

 FilterTreeModel (QObject *parent=nullptr)
 ~FilterTreeModel () override
FilterTreefilterTree () const
int rowCount (const QModelIndex &parent=QModelIndex()) const override
int columnCount (const QModelIndex &=QModelIndex()) const override
QVariant data (const QModelIndex &index, int role) const override
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
Qt::ItemFlags flags (const QModelIndex &index) const override
QModelIndex parent (const QModelIndex &ind) const override
QModelIndex index (int row, int column, const QModelIndex &parent) const override
bool removeRows (int row, int count, const QModelIndex &parent) override
void clear ()

Private Slots

void proxyBeginInsertRow (const FilterTreeNode *, int)
void proxyEndInsertRow (const FilterTreeNode *, int)
void proxyBeginRemoveRow (const FilterTreeNode *, int)
void proxyEndRemoveRow (const FilterTreeNode *, int)

Private Member Functions

FilterTreeNodeindexToNode (const QModelIndex &idx) const
QModelIndex nodeIndex (const FilterTreeNode *node, int row, int column) const

Private Attributes

FilterTreefTree

Constructor & Destructor Documentation

◆ FilterTreeModel()

FilterTreeModel::FilterTreeModel ( QObject * parent = nullptr)
Here is the call graph for this function:

◆ ~FilterTreeModel()

FilterTreeModel::~FilterTreeModel ( )
override

Member Function Documentation

◆ addFilter

void FilterTreeModel::addFilter ( const CardFilter * f)
slot
Here is the caller graph for this function:

◆ allFilters

QList< const CardFilter * > FilterTreeModel::allFilters ( ) const
nodiscardslot

◆ clear()

void FilterTreeModel::clear ( )

◆ clearFiltersOfType

void FilterTreeModel::clearFiltersOfType ( CardFilter::Attr filterType)
slot

◆ columnCount()

int FilterTreeModel::columnCount ( const QModelIndex & = QModelIndex()) const
nodiscardoverride
Here is the caller graph for this function:

◆ data()

QVariant FilterTreeModel::data ( const QModelIndex & index,
int role ) const
nodiscardoverride
Here is the call graph for this function:

◆ filterTree()

FilterTree * FilterTreeModel::filterTree ( ) const
inlinenodiscard

◆ flags()

Qt::ItemFlags FilterTreeModel::flags ( const QModelIndex & index) const
nodiscardoverride
Here is the call graph for this function:

◆ getFiltersOfType

QList< const CardFilter * > FilterTreeModel::getFiltersOfType ( CardFilter::Attr filterType) const
nodiscardslot

◆ index()

QModelIndex FilterTreeModel::index ( int row,
int column,
const QModelIndex & parent ) const
nodiscardoverride
Here is the call graph for this function:
Here is the caller graph for this function:

◆ indexToNode()

FilterTreeNode * FilterTreeModel::indexToNode ( const QModelIndex & idx) const
nodiscardprivate
Here is the caller graph for this function:

◆ nodeIndex()

QModelIndex FilterTreeModel::nodeIndex ( const FilterTreeNode * node,
int row,
int column ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parent()

QModelIndex FilterTreeModel::parent ( const QModelIndex & ind) const
nodiscardoverride
Here is the call graph for this function:
Here is the caller graph for this function:

◆ proxyBeginInsertRow

void FilterTreeModel::proxyBeginInsertRow ( const FilterTreeNode * node,
int i )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ proxyBeginRemoveRow

void FilterTreeModel::proxyBeginRemoveRow ( const FilterTreeNode * node,
int i )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ proxyEndInsertRow

void FilterTreeModel::proxyEndInsertRow ( const FilterTreeNode * node,
int  )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ proxyEndRemoveRow

void FilterTreeModel::proxyEndRemoveRow ( const FilterTreeNode * node,
int  )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeFilter

void FilterTreeModel::removeFilter ( const CardFilter * f)
slot

◆ removeRows()

bool FilterTreeModel::removeRows ( int row,
int count,
const QModelIndex & parent )
override
Here is the call graph for this function:

◆ rowCount()

int FilterTreeModel::rowCount ( const QModelIndex & parent = QModelIndex()) const
nodiscardoverride
Here is the call graph for this function:

◆ setData()

bool FilterTreeModel::setData ( const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole )
override
Here is the call graph for this function:

Member Data Documentation

◆ fTree

FilterTree* FilterTreeModel::fTree
private

The documentation for this class was generated from the following files: