Speed up deck editor filtering

* card: cache simpleName for each card
 * deck editor: remove double comparation of searched term with card
name when sorting
This commit is contained in:
Fabio Bas 2015-04-15 23:21:44 +02:00
parent feeaa9c9d1
commit eb6d067a21
3 changed files with 15 additions and 17 deletions

View file

@ -142,6 +142,7 @@ public:
MuidMap muids = MuidMap());
~CardInfo();
const QString &getName() const { return name; }
const QString &getSimpleName() const { return simpleName; }
bool getIsToken() const { return isToken; }
const SetList &getSets() const { return sets; }
const QString &getManaCost() const { return manacost; }