Enable tear-off on menus. (#3772)

This commit is contained in:
Rob Blanckaert 2019-07-11 19:53:43 -07:00 committed by Zach H
parent a3a1e20074
commit 2ef3e6fc93
3 changed files with 11 additions and 0 deletions

View file

@ -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);