[Gui] Fix regressions from PR7771...
specifically 7458912b33 fixes #7965 #8440
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user