fix for deck list model crash

This commit is contained in:
Max-Wilhelm Bruker 2009-07-17 21:27:38 +02:00
parent ec73ffc82b
commit ecc6f7b20f
4 changed files with 56 additions and 13 deletions

View file

@ -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 {