mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 21:04:07 -07:00
add docs
This commit is contained in:
parent
f213e14272
commit
96b4628510
1 changed files with 9 additions and 0 deletions
|
|
@ -303,6 +303,15 @@ void CardMenu::createHandOrCustomZoneMenu()
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Populates the menu with an action for each active player.
|
||||
*
|
||||
* The "all players" action is created separately, so it has to be passed into this function.
|
||||
* It will be put at the top of the menu.
|
||||
*
|
||||
* @param menu The menu to add the player actions to.
|
||||
* @param allPlayersAction The action for "all players".
|
||||
*/
|
||||
void CardMenu::initContextualPlayersMenu(QMenu *menu, QAction *allPlayersAction)
|
||||
{
|
||||
allPlayersAction->setData(-1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue