mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 23:42:15 -07:00
Add a widget to quickly add cards to the deck.
This commit is contained in:
parent
a729b749ba
commit
a7ee47c098
9 changed files with 270 additions and 4 deletions
16
cockatrice/src/game/cards/card_completer_proxy_model.h
Normal file
16
cockatrice/src/game/cards/card_completer_proxy_model.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef CARD_COMPLETER_PROXY_MODEL_H
|
||||
#define CARD_COMPLETER_PROXY_MODEL_H
|
||||
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
class CardCompleterProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit CardCompleterProxyModel(QObject *parent = nullptr);
|
||||
|
||||
protected:
|
||||
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
|
||||
};
|
||||
|
||||
#endif // CARD_COMPLETER_PROXY_MODEL_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue