mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
Threaded picture caching
This commit is contained in:
parent
9ece3cb789
commit
dc0f21cce4
9 changed files with 139 additions and 78 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include <QPair>
|
||||
#include <QObject>
|
||||
#include <QStringList>
|
||||
#include <QSet>
|
||||
#include "serializable_item.h"
|
||||
|
||||
class CardDatabase;
|
||||
|
|
@ -115,6 +116,7 @@ private:
|
|||
InnerDecklistNode *currentZone;
|
||||
SideboardPlan *currentSideboardPlan;
|
||||
QString currentElementText;
|
||||
void getCardListHelper(InnerDecklistNode *node, QSet<QString> &result) const;
|
||||
signals:
|
||||
void deckLoaded();
|
||||
public slots:
|
||||
|
|
@ -149,6 +151,7 @@ public:
|
|||
|
||||
void cleanList();
|
||||
bool isEmpty() const { return root->isEmpty() && name.isEmpty() && comments.isEmpty() && sideboardPlans.isEmpty(); }
|
||||
QStringList getCardList() const;
|
||||
|
||||
InnerDecklistNode *getRoot() const { return root; }
|
||||
DecklistCardNode *addCard(const QString &cardName, const QString &zoneName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue