From 5e6cd8d51fd25b388b258cadb214592fb1c50ec4 Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Thu, 16 Feb 2023 17:00:36 +0000 Subject: [PATCH] [Gui] Fix regressions from PR7771... specifically https://github.com/FreeCAD/FreeCAD/commit/c24a50f486da796b8319de38f847389438bd2972 fixes #7965 #8440 --- src/Gui/ToolBarManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Gui/ToolBarManager.cpp b/src/Gui/ToolBarManager.cpp index 91d9e7f56a..61d6de016b 100644 --- a/src/Gui/ToolBarManager.cpp +++ b/src/Gui/ToolBarManager.cpp @@ -182,6 +182,12 @@ void ToolBarManager::setup(ToolBarItem* toolBarItems) static QPointer _ActionWidget; if (!_ActionWidget) { _ActionWidget = new QWidget(getMainWindow()); + _ActionWidget->setObjectName(QStringLiteral("_fc_action_widget_")); + // Although _ActionWidget has zero size, on MacOS it somehow has a + // 'phantom' size without any visible content and will block the top + // left tool buttons of the application main window. So we move it out + // of the way. + _ActionWidget->move(QPoint(-100,-100)); } else { for (auto action : _ActionWidget->actions())