mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
Enable tear-off on menus. (#3772)
This commit is contained in:
parent
a3a1e20074
commit
2ef3e6fc93
3 changed files with 11 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ AbstractCounter::AbstractCounter(Player *_player,
|
|||
|
||||
if (player->getLocalOrJudge()) {
|
||||
menu = new QMenu(name);
|
||||
menu->setTearOffEnabled(true);
|
||||
aSet = new QAction(this);
|
||||
connect(aSet, SIGNAL(triggered()), this, SLOT(setCounter()));
|
||||
menu->addAction(aSet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue