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++
Disable long-press on color selector shapes
Carsten Hartenfelsb4e9a01c7964
diff --git a/libs/widgets/KisVisualColorSelectorShape.cpp b/libs/widgets/KisVisualColorSelectorShape.cppindex 899b04df48..6a844701ee 100644--- a/libs/widgets/KisVisualColorSelectorShape.cpp+++ b/libs/widgets/KisVisualColorSelectorShape.cpp@@ -51,6 +51,9 @@ KisVisualColorSelectorShape::KisVisualColorSelectorShape(KisVisualColorSelectorm_d->channelMask |= 1 << channel2;}this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);+ // Color selectors don't have context menus. Setting this prevents any+ // long-presses from delaying inputs, see KisLongPressEventFilter.cpp.+ setContextMenuPolicy(Qt::PreventContextMenu);}KisVisualColorSelectorShape::~KisVisualColorSelectorShape()