Skip to content
Snippets Groups Projects
Commit 68daff5c authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

WA_NoMousePropagation disabled for each QCP instance

parent 1e6531ea
No related branches found
No related tags found
1 merge request!873GUI: Mouse cursor shape "left-right arrow" fix : amendment
Pipeline #64632 passed
......@@ -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);
......@@ -58,6 +58,7 @@ DistributionPlot::DistributionPlot(QWidget* parent)
mainLayout->setSpacing(0);
mainLayout->addWidget(m_plot, 1);
mainLayout->addWidget(m_label);
m_plot->setAttribute(Qt::WA_NoMousePropagation, false);
setLayout(mainLayout);
setStyleSheet("background-color:white;");
......
......@@ -25,6 +25,7 @@ HistogramPlot::HistogramPlot(QWidget* parent)
vlayout->setSpacing(0);
vlayout->setContentsMargins(0, 0, 0, 0);
vlayout->addWidget(m_customPlot);
m_customPlot->setAttribute(Qt::WA_NoMousePropagation, false);
setLayout(vlayout);
setStyleSheet("background-color:white;");
......
......@@ -41,6 +41,7 @@ Plot1D::Plot1D(QWidget* parent)
vlayout->setContentsMargins(0, 0, 0, 0);
vlayout->setSpacing(0);
vlayout->addWidget(m_custom_plot);
m_custom_plot->setAttribute(Qt::WA_NoMousePropagation, false);
setLayout(vlayout);
m_custom_plot->xAxis->setTickLabelFont(
......
......@@ -40,6 +40,7 @@ SpecularPlot::SpecularPlot(QWidget* parent)
vlayout->setContentsMargins(0, 0, 0, 0);
vlayout->setSpacing(0);
vlayout->addWidget(m_custom_plot);
m_custom_plot->setAttribute(Qt::WA_NoMousePropagation, false);
setLayout(vlayout);
setMouseTrackingEnabled(true);
......
......@@ -43,6 +43,7 @@ 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);
......
......@@ -38,6 +38,7 @@ ProjectionsPlot::ProjectionsPlot(QString projectionType, QWidget* parent)
vlayout->setMargin(0);
vlayout->setSpacing(0);
vlayout->addWidget(m_customPlot);
m_customPlot->setAttribute(Qt::WA_NoMousePropagation, false);
setLayout(vlayout);
m_customPlot->xAxis->setTickLabelFont(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment