|
|
|
@ -44,13 +44,7 @@ DisplayWidget::DisplayWidget(QWidget* parent) : QWidget(parent)
|
|
|
|
setMouseTracking(true);
|
|
|
|
setMouseTracking(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
DisplayWidget::~DisplayWidget()
|
|
|
|
DisplayWidget::~DisplayWidget() = default;
|
|
|
|
{
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
|
|
|
if (m_clip_mouse_enabled)
|
|
|
|
|
|
|
|
ClipCursor(nullptr);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int DisplayWidget::scaledWindowWidth() const
|
|
|
|
int DisplayWidget::scaledWindowWidth() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -157,6 +151,11 @@ void DisplayWidget::destroy()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_destroying = true;
|
|
|
|
m_destroying = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
|
|
|
if (m_clip_mouse_enabled)
|
|
|
|
|
|
|
|
ClipCursor(nullptr);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __APPLE__
|
|
|
|
#ifdef __APPLE__
|
|
|
|
// See Qt documentation, entire application is in full screen state, and the main
|
|
|
|
// See Qt documentation, entire application is in full screen state, and the main
|
|
|
|
// window will get reopened fullscreen instead of windowed if we don't close the
|
|
|
|
// window will get reopened fullscreen instead of windowed if we don't close the
|
|
|
|
|