mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
added deckstats.net interface in deck editor, fixing issue #39
This commit is contained in:
parent
3ba3952604
commit
44d688b1d5
7 changed files with 99 additions and 1 deletions
|
|
@ -480,6 +480,14 @@ bool DeckList::saveToFile_Plain(QIODevice *device)
|
|||
return saveToStream_Plain(out);
|
||||
}
|
||||
|
||||
QString DeckList::writeToString_Plain()
|
||||
{
|
||||
QString result;
|
||||
QTextStream out(&result);
|
||||
saveToStream_Plain(out);
|
||||
return result;
|
||||
}
|
||||
|
||||
void DeckList::cleanList()
|
||||
{
|
||||
root->clearTree();
|
||||
|
|
|
|||
|
|
@ -144,6 +144,7 @@ public:
|
|||
bool loadFromFile_Plain(QIODevice *device);
|
||||
bool saveToStream_Plain(QTextStream &stream);
|
||||
bool saveToFile_Plain(QIODevice *device);
|
||||
QString writeToString_Plain();
|
||||
|
||||
void cleanList();
|
||||
bool isEmpty() const { return root->isEmpty() && name.isEmpty() && comments.isEmpty() && sideboardPlans.isEmpty(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue