[DeckEditor] Replace mainboard/sideboard with tokensboard for tokens (#6971)

* [DeckEditor] Replace mainboard/sideboard with tokensboard for token cards (#6546)

* [PrintingSelector] Replace std::tuple with ZoneCounts struct for readability (#6546)
This commit is contained in:
kongwu 2026-06-10 11:46:43 +08:00 committed by GitHub
parent da4ba222c0
commit f72c82d0f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 115 additions and 29 deletions

View file

@ -255,6 +255,10 @@ bool DeckStateManager::swapCardAtIndex(const QModelIndex &idx)
}
QString zoneName = gparent.siblingAtColumn(DeckListModelColumns::CARD_NAME).data(Qt::EditRole).toString();
// tokens have no swap target
if (zoneName == DECK_ZONE_TOKENS) {
return false;
}
QString otherZoneName = zoneName == DECK_ZONE_MAIN ? DECK_ZONE_SIDE : DECK_ZONE_MAIN;
QString reason = tr("Moved to %1 1 × \"%2\" (%3)") //