Toggles visible of FloatingWidget by context-menu actions

This commit is contained in:
mfreiholz
2016-02-03 09:15:07 +01:00
parent 4f394ddf5e
commit 2a5849a266
3 changed files with 12 additions and 1 deletions

View File

@@ -100,4 +100,11 @@ void MainWindow::onActionAddSectionContentTriggered()
// auto section = new ads::SectionWidget(_container);
// _container->addSection(section);
// section->addContent(content);
}
}
void MainWindow::contextMenuEvent(QContextMenuEvent* e)
{
QMenu* m = _container->createContextMenu();
m->exec(QCursor::pos());
delete m;
}