[Gui] Fix regressions from PR7771...

specifically 7458912b33 fixes #7965 #8440
This commit is contained in:
Syres916
2023-02-16 17:00:36 +00:00
committed by wwmayer
parent 4eafedb20f
commit 48ca8d5269

View File

@@ -182,6 +182,12 @@ void ToolBarManager::setup(ToolBarItem* toolBarItems)
static QPointer<QWidget> _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())