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: QWidget::enterEvent now takes a QEnterEvent
Halla Rempt749972a0fc79
diff --git a/libs/ui/widgets/kis_color_label_button.cpp b/libs/ui/widgets/kis_color_label_button.cppindex c4e5dd56c0..6aba1b3255 100644--- a/libs/ui/widgets/kis_color_label_button.cpp+++ b/libs/ui/widgets/kis_color_label_button.cpp@@ -147,7 +147,11 @@ void KisColorLabelButton::paintEvent(QPaintEvent *event)}}+#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))void KisColorLabelButton::enterEvent(QEvent *event) {+#else+void KisColorLabelButton::enterEvent(QEnterEvent *event) {+#endifQ_UNUSED(event);update();}diff --git a/libs/ui/widgets/kis_color_label_button.h b/libs/ui/widgets/kis_color_label_button.hindex 1e6c53ed76..9594ea858b 100644--- a/libs/ui/widgets/kis_color_label_button.h+++ b/libs/ui/widgets/kis_color_label_button.h@@ -26,7 +26,11 @@ public:~KisColorLabelButton() override;void paintEvent(QPaintEvent* event) override;+#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))void enterEvent(QEvent *event) override;+#else+ void enterEvent(QEnterEvent *event) override;+#endifvoid leaveEvent(QEvent *event) override;QSize sizeHint() const override;SelectionIndicationType selectionVisType() const;