chore: initial Qt6 build support

This commit is contained in:
Gary Wang
2021-10-02 19:57:42 +08:00
parent 26c4c8871d
commit a4416cd77c
7 changed files with 25 additions and 11 deletions

View File

@ -7,6 +7,12 @@
#include <QPropertyAnimation>
#include <QPushButton>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
typedef QEnterEvent QT_ENTER_EVENT;
#else
typedef QEvent QT_ENTER_EVENT;
#endif // QT_VERSION_CHECK(6, 0, 0)
QT_BEGIN_NAMESPACE
class QGraphicsOpacityEffect;
class QGraphicsView;
@ -37,7 +43,7 @@ public:
protected slots:
void showEvent(QShowEvent *event) override;
void enterEvent(QEvent *event) override;
void enterEvent(QT_ENTER_EVENT *event) override;
void leaveEvent(QEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;