Merge pull request #260 from Mawu3n4/master

Find cards by prefix
This commit is contained in:
Gavin Bisesi 2014-10-09 11:29:02 -04:00
commit 6810ae46d6
2 changed files with 31 additions and 6 deletions

View file

@ -180,7 +180,13 @@ signals:
enum LoadStatus { Ok, VersionTooOld, Invalid, NotLoaded, FileError, NoCards };
typedef QHash<QString, CardInfo *> CardNameMap;
class CardNameMap: public QHash<QString, CardInfo *>
{
public:
CardInfo *findByPrefix(const std::string &prefix);
};
typedef QHash<QString, CardSet *> SetNameMap;
class CardDatabase : public QObject {