Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Qt6: port to QEnterEvent

Halla Rempt9f98ecd82930
diff --git a/plugins/dockers/overview/overviewdocker_page.cpp b/plugins/dockers/overview/overviewdocker_page.cpp
index de7eff68bb..ed097c804c 100644
--- a/plugins/dockers/overview/overviewdocker_page.cpp
+++ b/plugins/dockers/overview/overviewdocker_page.cpp
@@ -238,7 +238,11 @@ void OverviewDockerPage::leaveEvent(QEvent*)
}
}
+#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
void OverviewDockerPage::enterEvent(QEvent*)
+#else
+void OverviewDockerPage::enterEvent(QEnterEvent*)
+#endif
{
m_cursorIsHover = true;
if (isEnabled() && !m_pinControls) {