[Gui] Improve comments regarding move of widget

This commit is contained in:
Syres916
2023-02-23 14:11:03 +00:00
committed by wwmayer
parent 48ca8d5269
commit 322c1e4ddb

View File

@@ -183,10 +183,10 @@ void ToolBarManager::setup(ToolBarItem* toolBarItems)
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.
/* Although _ActionWidget has zero size, it somehow has a
'phantom' size without any visible content and will block the top
left tool buttons and menus of the application main window.
Therefore it is moved out of the way. */
_ActionWidget->move(QPoint(-100,-100));
}
else {