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

@ -1382,6 +1382,8 @@ void TabGame::createMenuItems()
aCloseReplay = nullptr;
phasesMenu = new QMenu(this);
phasesMenu->setTearOffEnabled(true);
for (int i = 0; i < phasesToolbar->phaseCount(); ++i) {
QAction *temp = new QAction(QString(), this);
connect(temp, SIGNAL(triggered()), this, SLOT(actPhaseAction()));