mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Load deck from clipboard in Game Lobby (#5950)
This commit is contained in:
parent
d729df5cba
commit
50d3dfb98b
5 changed files with 47 additions and 12 deletions
|
|
@ -441,7 +441,7 @@ bool DeckList::readElement(QXmlStreamReader *xml)
|
|||
return true;
|
||||
}
|
||||
|
||||
void DeckList::write(QXmlStreamWriter *xml)
|
||||
void DeckList::write(QXmlStreamWriter *xml) const
|
||||
{
|
||||
xml->writeStartElement("cockatrice_deck");
|
||||
xml->writeAttribute("version", "1");
|
||||
|
|
@ -508,7 +508,7 @@ bool DeckList::loadFromString_Native(const QString &nativeString)
|
|||
return loadFromXml(&xml);
|
||||
}
|
||||
|
||||
QString DeckList::writeToString_Native()
|
||||
QString DeckList::writeToString_Native() const
|
||||
{
|
||||
QString result;
|
||||
QXmlStreamWriter xml(&result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue