From 48ca8d52693e1a5cf1ce31fb1366ea81c4d85dda 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/7458912b3340a428cd5fcb763859659ebb8b76ce 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())