Decklist testing (#2537)

This commit is contained in:
Mark McDonald 2017-04-01 01:24:16 -04:00 committed by Zach H
parent ef7670a1e6
commit 9cbae8c707
6 changed files with 173 additions and 5 deletions

View file

@ -173,11 +173,11 @@ float InnerDecklistNode::recursivePrice(bool countTotalCards) const
bool InnerDecklistNode::compare(AbstractDecklistNode *other) const
{
switch (sortMethod) {
case 0:
case ByNumber:
return compareNumber(other);
case 1:
case ByName:
return compareName(other);
case 2:
case ByPrice:
return comparePrice(other);
}
return 0;

View file

@ -13,7 +13,7 @@
#include <QtCore/QXmlStreamReader>
#include <QtCore/QXmlStreamWriter>
#include "pb/move_card_to_zone.pb.h"
#include <common/pb/move_card_to_zone.pb.h>
class CardDatabase;
class QIODevice;