Toggles visible of FloatingWidget by context-menu actions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user