Fix enterEvent signature for Qt5/Qt6 compatibility

This commit is contained in:
Evgeny committed 2026-07-13 07:06:58 +03:00
1 parent a5ffc6fbde
commit e1d1969f00
1 file changed
+4
+4
View File
@@ -46,7 +46,11 @@ public:
const QString &unicode() const { return m_data.unicode; }
protected:
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
void enterEvent(QEnterEvent *e) override {
#else
void enterEvent(QEvent *e) override {
#endif
QPushButton::enterEvent(e);
if (m_icon && m_icon->isValid()) {
m_hovered = true;