Fix enterEvent signature for Qt5/Qt6 compatibility
This commit is contained in:
1 parent
a5ffc6fbde
commit
e1d1969f00
1 file changed
+4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user