Disables the context menu of the tool bars (fixes #2379)

This commit is contained in:
Michael Gregorius
2015-09-25 16:48:29 +02:00
parent 56a04072e2
commit 596a41d143

View File

@@ -58,6 +58,7 @@ DropToolBar * Editor::addDropToolBar(QWidget * parent, Qt::ToolBarArea whereToAd
addToolBar(whereToAdd, toolBar);
toolBar->setMovable(false);
toolBar->setFloatable(false);
toolBar->setContextMenuPolicy(Qt::PreventContextMenu);
toolBar->setWindowTitle(windowTitle);
return toolBar;