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++
Fix build with qt5
Luna Lovecraftca7160e612a4
diff --git a/libs/ui/kis_selection_actions_panel_button.cpp b/libs/ui/kis_selection_actions_panel_button.cppindex eca0c0dfd5..18fd5bc71f 100644--- a/libs/ui/kis_selection_actions_panel_button.cpp+++ b/libs/ui/kis_selection_actions_panel_button.cpp@@ -78,11 +78,19 @@ bool KisSelectionActionsPanelButton::event(QEvent *e){//Manually handle the button being pressed on touchif (e->type() == QEvent::TouchBegin) {- e->accept();+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)if (((QTouchEvent *)e)->points().count() == 1) {this->animateClick();+ e->accept();+ return true;+ }+#else+ if (((QTouchEvent *)e)->touchPoints().count() == 1) {+ this->animateClick();+ e->accept();+ return true;}- return true;+#endif}return QAbstractButton::event(e);}