fix compilation error

Fixes: #211
This commit is contained in:
Yuhang Zhao 2023-03-30 10:28:31 +08:00
parent b864e39894
commit 2a6b8e6ebe
1 changed files with 0 additions and 7 deletions

View File

@ -69,15 +69,8 @@ Q_SIGNALS:
void micaEnabledChanged();
private:
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
// Due to a Qt bug, we can't initialize the QPointer objects with nullptr.
// The bug was fixed in Qt 5.15.
QPointer<QWidget> m_targetWidget;
QPointer<QScreen> m_screen;
#else
QPointer<QWidget> m_targetWidget = nullptr;
QPointer<QScreen> m_screen = nullptr;
#endif
bool m_micaEnabled = false;
MicaMaterial *m_micaMaterial = nullptr;
QMetaObject::Connection m_micaRedrawConnection = {};