Fix - MacOS Tool Setting on non-primary screen

This commit is contained in:
Yuriy Puchkov
2020-11-24 08:53:15 -08:00
parent 293525f5b6
commit 4c49461a7a

View File

@@ -42,6 +42,11 @@ UtilityPanel::UtilityPanel(QWidget* parent)
&QPropertyAnimation::finished,
m_internalPanel,
&QWidget::hide);
#if (defined(Q_OS_WIN) || defined(Q_OS_MAC) || defined(Q_OS_MAC64) || \
defined(Q_OS_MACOS) || defined(Q_OS_MACX))
move(0, 0);
#endif
}
QWidget* UtilityPanel::toolWidget() const
@@ -81,6 +86,10 @@ void UtilityPanel::show()
m_showAnimation->setEndValue(QRect(0, 0, width(), height()));
m_internalPanel->show();
m_showAnimation->start();
#if (defined(Q_OS_WIN) || defined(Q_OS_MAC) || defined(Q_OS_MAC64) || \
defined(Q_OS_MACOS) || defined(Q_OS_MACX))
move(0, 0);
#endif
QWidget::show();
}