mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-25 16:13:54 -07:00
fix for deck list model crash
This commit is contained in:
parent
ec73ffc82b
commit
ecc6f7b20f
4 changed files with 56 additions and 13 deletions
|
|
@ -2,6 +2,8 @@
|
|||
#define DECKLIST_H
|
||||
|
||||
#include <QList>
|
||||
#include <QVector>
|
||||
#include <QPair>
|
||||
#include <QObject>
|
||||
|
||||
class CardDatabase;
|
||||
|
|
@ -38,7 +40,7 @@ public:
|
|||
int height() const;
|
||||
int recursiveCount(bool countTotalCards = false) const;
|
||||
bool compare(AbstractDecklistNode *other) const;
|
||||
void sort(Qt::SortOrder order = Qt::AscendingOrder);
|
||||
QVector<QPair<int, int> > sort(Qt::SortOrder order = Qt::AscendingOrder);
|
||||
};
|
||||
|
||||
class AbstractDecklistCardNode : public AbstractDecklistNode {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue