Commit 899339cf authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

fix qt 6 compile

parent bb637025
Pipeline #250989 passed with stage
in 19 minutes and 53 seconds
......@@ -84,16 +84,20 @@ void ResultsTreeView::resizeEvent(QResizeEvent *e)
QTreeView::resizeEvent(e);
}
void ResultsTreeView::enterEvent(QEvent *e)
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
void ResultsTreeView::enterEvent(QEvent *event)
#else
void ResultsTreeView::enterEvent(QEnterEvent *event)
#endif
{
auto *res = qobject_cast<Results *>(parent());
if (!res) {
qWarning() << Q_FUNC_INFO << "Unexpected null parent() Results";
QTreeView::enterEvent(e);
QTreeView::enterEvent(event);
return;
}
m_detachButton->setVisible(!res->isEmpty() && !res->isDetachedToMainWindow);
QTreeView::enterEvent(e);
QTreeView::enterEvent(event);
}
void ResultsTreeView::leaveEvent(QEvent *e)
......
......@@ -27,7 +27,11 @@ private:
protected:
void resizeEvent(QResizeEvent *) override;
void enterEvent(QEvent *) override;
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
void enterEvent(QEvent *event) override;
#else
void enterEvent(QEnterEvent *event) override;
#endif
void leaveEvent(QEvent *) override;
Q_SIGNALS:
......
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