aboutsummaryrefslogtreecommitdiff
path: root/include/aocharbutton.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/aocharbutton.h')
-rw-r--r--include/aocharbutton.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/aocharbutton.h b/include/aocharbutton.h
index 8e8038f9..688d52d6 100644
--- a/include/aocharbutton.h
+++ b/include/aocharbutton.h
@@ -38,8 +38,12 @@ private:
AOImage *ui_selector;
protected:
- void enterEvent(QEnterEvent *e);
- void leaveEvent(QEvent *e);
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
+ void enterEvent(QEvent *e) override;
+#else
+ void enterEvent(QEnterEvent *e) override;
+#endif
+ void leaveEvent(QEvent *e) override;
};
#endif // AOCHARBUTTON_H