mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
Oracle / card xml improvements (#3934)
* fix #1610 * fix #2679; partially fix #3647 * Fix tests * Remove debug code
This commit is contained in:
parent
a135ad064a
commit
27b7ebe208
13 changed files with 131 additions and 10 deletions
|
|
@ -38,6 +38,22 @@ public:
|
|||
{
|
||||
return !tokensData.isEmpty();
|
||||
}
|
||||
void setCardSourceUrl(const QString &sourceUrl)
|
||||
{
|
||||
cardSourceUrl = sourceUrl;
|
||||
}
|
||||
void setCardSourceVersion(const QString &sourceVersion)
|
||||
{
|
||||
cardSourceVersion = sourceVersion;
|
||||
}
|
||||
const QString &getCardSourceUrl() const
|
||||
{
|
||||
return cardSourceUrl;
|
||||
}
|
||||
const QString &getCardSourceVersion() const
|
||||
{
|
||||
return cardSourceVersion;
|
||||
}
|
||||
bool saveTokensToFile(const QString &fileName);
|
||||
|
||||
public:
|
||||
|
|
@ -50,6 +66,8 @@ private slots:
|
|||
|
||||
private:
|
||||
QByteArray tokensData;
|
||||
QString cardSourceUrl;
|
||||
QString cardSourceVersion;
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *event) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue