DeckList now tries to assign reasonable defaults for UUID and collectorNumber if none are found in loaded DeckLists.

Rename overloaded DeckListModel findChild() function to findCardChildByNameAndUUID() for clarity.
This commit is contained in:
Lukas Brübach 2024-11-13 13:52:35 +01:00
parent 963ff64cb6
commit edbc57edc7
3 changed files with 43 additions and 11 deletions

View file

@ -128,7 +128,7 @@ public:
void clearTree();
AbstractDecklistNode *findChild(const QString &_name);
AbstractDecklistNode *findChild(const QString &_name, const QString &_uuid);
AbstractDecklistNode *findCardChildByNameAndUUID(const QString &_name, const QString &_uuid);
int height() const override;
int recursiveCount(bool countTotalCards = false) const;
bool compare(AbstractDecklistNode *other) const override;