forked from qt-creator/qt-creator
QmlDesigner: Disable context menu on toolbar
The context menu can hide the toolbar and we do not want this. Change-Id: I74274458f09af1a4d38b5f3f395dcc3ece5befa0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
@@ -62,6 +62,8 @@ void ToolBar::create()
|
|||||||
|
|
||||||
auto toolBar = new QToolBar;
|
auto toolBar = new QToolBar;
|
||||||
|
|
||||||
|
toolBar->setContextMenuPolicy(Qt::PreventContextMenu);
|
||||||
|
|
||||||
toolBar->setFloatable(false);
|
toolBar->setFloatable(false);
|
||||||
toolBar->setMovable(false);
|
toolBar->setMovable(false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user