Commit 436f8250 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

fix enterEvent qt6 signature

parent f32cff1c
Pipeline #113297 passed with stage
in 1 minute and 13 seconds
......@@ -28,7 +28,11 @@ KNoteButton::KNoteButton(const QString &icon, QWidget *parent)
KNoteButton::~KNoteButton() = default;
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
void KNoteButton::enterEvent(QEnterEvent *)
#else
void KNoteButton::enterEvent(QEvent *)
#endif
{
setFlat(false);
repaint();
......
......@@ -21,7 +21,11 @@ public:
Q_REQUIRED_RESULT QSize sizeHint() const override;
protected:
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
void enterEvent(QEnterEvent *) override;
#else
void enterEvent(QEvent *) override;
#endif
void leaveEvent(QEvent *) override;
void paintEvent(QPaintEvent *e) override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment