move docs for updateCardMenu

This commit is contained in:
RickyRister 2025-09-12 03:12:56 -07:00
parent 027467686e
commit 04c0d2ad39
2 changed files with 7 additions and 8 deletions

View file

@ -438,14 +438,6 @@ bool Player::clearCardsToDelete()
return true; return true;
} }
/**
* Creates a card menu from the given card and sets it as the currently active card menu.
* Will first check if the card should have a card menu, and no-ops if not.
*
* @param card The card to create the menu for. Pass nullptr to disable the card menu.
* @return The new card menu, or nullptr if failed.
*/
void Player::setActive(bool _active) void Player::setActive(bool _active)
{ {
active = _active; active = _active;

View file

@ -838,6 +838,13 @@ QMenu *PlayerMenu::createCardMenu(const CardItem *card)
return cardMenu; return cardMenu;
} }
/**
* Creates a card menu from the given card and sets it as the currently active card menu.
* Will first check if the card should have a card menu, and no-ops if not.
*
* @param card The card to create the menu for. Pass nullptr to disable the card menu.
* @return The new card menu, or nullptr if failed.
*/
QMenu *PlayerMenu::updateCardMenu(const CardItem *card) QMenu *PlayerMenu::updateCardMenu(const CardItem *card)
{ {
if (!card) { if (!card) {