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++

Disable context menu on overview widget

Carsten Hartenfels814223f14e52
diff --git a/plugins/dockers/overview/overviewwidget.cc b/plugins/dockers/overview/overviewwidget.cc
index d2495a0a70..34183493e9 100644
--- a/plugins/dockers/overview/overviewwidget.cc
+++ b/plugins/dockers/overview/overviewwidget.cc
@@ -32,6 +32,9 @@ OverviewWidget::OverviewWidget(QWidget * parent)
, m_dragging(false)
{
setMouseTracking(true);
+ // No context menu here. Setting this avoids long-presses from delaying
+ // inputs or dismissing the palette, see KisLongPressEventFilter.cpp.
+ setContextMenuPolicy(Qt::PreventContextMenu);
KisConfig cfg(true);
slotThemeChanged();
recalculatePreviewDimensions();