win: Qt version check for #155 (#157)

This commit is contained in:
Jan Kowalewicz 2022-09-11 04:23:01 +02:00 committed by GitHub
parent 9cf8ba959d
commit 6a46844853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -68,11 +68,16 @@ Q_SIGNALS:
void micaEnabledChanged();
private:
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
QPointer<QWidget> m_targetWidget;
QPointer<QScreen> m_screen;
#else
QPointer<QWidget> m_targetWidget = nullptr;
QPointer<QScreen> m_screen = nullptr;
#endif
bool m_micaEnabled = false;
QPointer<MicaMaterial> m_micaMaterial;
QMetaObject::Connection m_micaRedrawConnection = {};
QPointer<QScreen> m_screen;
qreal m_screenDpr = 0.0;
QMetaObject::Connection m_screenDpiChangeConnection = {};
};