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

#include <card_search_model.h>

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

Classes

struct  SearchResult

Public Member Functions

 CardSearchModel (CardDatabaseDisplayModel *sourceModel, QObject *parent=nullptr)
int rowCount (const QModelIndex &parent=QModelIndex()) const override
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
void updateSearchResults (const QString &query)

Private Attributes

CardDatabaseDisplayModelsourceModel
QList< SearchResultsearchResults

Constructor & Destructor Documentation

◆ CardSearchModel()

CardSearchModel::CardSearchModel ( CardDatabaseDisplayModel * sourceModel,
QObject * parent = nullptr )
explicit

Member Function Documentation

◆ data()

QVariant CardSearchModel::data ( const QModelIndex & index,
int role = Qt::DisplayRole ) const
nodiscardoverride

◆ rowCount()

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

◆ updateSearchResults()

void CardSearchModel::updateSearchResults ( const QString & query)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ searchResults

QList<SearchResult> CardSearchModel::searchResults
private

◆ sourceModel

CardDatabaseDisplayModel* CardSearchModel::sourceModel
private

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