From 1e6531eacd2700928cf1e69c31f1d9f414d6c609 Mon Sep 17 00:00:00 2001
From: Mikhail Svechnikov <svechnikovmv@gmail.com>
Date: Fri, 13 May 2022 10:50:39 +0200
Subject: [PATCH] WA_NoMousePropagation commented in QCP itself

---
 3rdparty/GUI/qcustomplot/qcustomplot.cpp | 2 +-
 GUI/View/PlotUtil/ColorMap.cpp           | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/3rdparty/GUI/qcustomplot/qcustomplot.cpp b/3rdparty/GUI/qcustomplot/qcustomplot.cpp
index 20b88f452b4..1dee8918544 100644
--- a/3rdparty/GUI/qcustomplot/qcustomplot.cpp
+++ b/3rdparty/GUI/qcustomplot/qcustomplot.cpp
@@ -12962,7 +12962,7 @@ QCustomPlot::QCustomPlot(QWidget *parent) :
   mOpenGlAntialiasedElementsBackup(QCP::aeNone),
   mOpenGlCacheLabelsBackup(true)
 {
-  setAttribute(Qt::WA_NoMousePropagation);
+  // setAttribute(Qt::WA_NoMousePropagation);
   setAttribute(Qt::WA_OpaquePaintEvent);
   setFocusPolicy(Qt::ClickFocus);
   setMouseTracking(true);
diff --git a/GUI/View/PlotUtil/ColorMap.cpp b/GUI/View/PlotUtil/ColorMap.cpp
index 2ad91f81d91..a68db50f91b 100644
--- a/GUI/View/PlotUtil/ColorMap.cpp
+++ b/GUI/View/PlotUtil/ColorMap.cpp
@@ -43,7 +43,6 @@ ColorMap::ColorMap(QWidget* parent)
     vlayout->setMargin(0);
     vlayout->setSpacing(0);
     vlayout->addWidget(m_customPlot);
-    m_customPlot->setAttribute( Qt::WA_NoMousePropagation, false );
     setLayout(vlayout);
 
     setMouseTrackingEnabled(true);
-- 
GitLab