Commit 8a17d50a authored by Volker Krause's avatar Volker Krause
Browse files

Adapt to QWidget::enterEvent changes in Qt6

parent 2667527a
Pipeline #157374 passed with stage
in 4 minutes and 39 seconds
......@@ -25,7 +25,11 @@ TestArea::TestArea(QWidget *parent)
m_ui.scrollAreaWidgetContents->setStyleSheet(stylesheet.arg(wallpaper));
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
void TestArea::enterEvent(QEvent *e)
#else
void TestArea::enterEvent(QEnterEvent *e)
#endif
{
Q_EMIT enter();
QWidget::enterEvent(e);
......
......@@ -20,7 +20,11 @@ Q_SIGNALS:
void leave();
protected:
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
void enterEvent(QEvent *) override;
#else
void enterEvent(QEnterEvent *) override;
#endif
void leaveEvent(QEvent *) override;
private:
......
Supports Markdown
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