mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 00:12:15 -07:00
move docs for updateCardMenu
This commit is contained in:
parent
027467686e
commit
04c0d2ad39
2 changed files with 7 additions and 8 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue