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:
Thomas Hartmann
2023-01-25 19:34:14 +01:00
parent 5bb6dde12b
commit f252584daa

View File

@@ -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);