Skip to content
Snippets Groups Projects
Commit ba2b6b15 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Removed blue rectangle under mac around tuningWidget, restored ColorMapPlot with projections

parent e390c963
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,7 @@ void ColorMapPlot::drawLinesOverTheMap() ...@@ -146,7 +146,7 @@ void ColorMapPlot::drawLinesOverTheMap()
} }
m_customPlot->graph(1)->setData(x2, y2); m_customPlot->graph(1)->setData(x2, y2);
replot(); m_customPlot->replot();
} }
//! switches visibility of two crossed lines //! switches visibility of two crossed lines
...@@ -155,7 +155,7 @@ void ColorMapPlot::showLinesOverTheMap(bool isVisible) ...@@ -155,7 +155,7 @@ void ColorMapPlot::showLinesOverTheMap(bool isVisible)
if (m_customPlot->graph(0) && m_customPlot->graph(1)) { if (m_customPlot->graph(0) && m_customPlot->graph(1)) {
m_customPlot->graph(0)->setVisible(isVisible); m_customPlot->graph(0)->setVisible(isVisible);
m_customPlot->graph(1)->setVisible(isVisible); m_customPlot->graph(1)->setVisible(isVisible);
replot(); m_customPlot->replot();
} }
} }
...@@ -434,6 +434,7 @@ void ColorMapPlot::onYaxisRangeChanged(QCPRange newRange) ...@@ -434,6 +434,7 @@ void ColorMapPlot::onYaxisRangeChanged(QCPRange newRange)
void ColorMapPlot::replot() void ColorMapPlot::replot()
{ {
m_updateTimer->scheduleUpdate(); m_updateTimer->scheduleUpdate();
// m_customPlot->replot(); // will trigger immediate replot, seems that slower
} }
//! Replots ColorMap. //! Replots ColorMap.
......
...@@ -72,6 +72,7 @@ ParameterTuningWidget::ParameterTuningWidget(QWidget *parent) ...@@ -72,6 +72,7 @@ ParameterTuningWidget::ParameterTuningWidget(QWidget *parent)
//m_treeView->setSelectionMode(QAbstractItemView::ExtendedSelection); //m_treeView->setSelectionMode(QAbstractItemView::ExtendedSelection);
m_treeView->setContextMenuPolicy(Qt::CustomContextMenu); m_treeView->setContextMenuPolicy(Qt::CustomContextMenu);
m_treeView->setDragDropMode(QAbstractItemView::NoDragDrop); m_treeView->setDragDropMode(QAbstractItemView::NoDragDrop);
m_treeView->setAttribute(Qt::WA_MacShowFocusRect, false);
QVBoxLayout *mainLayout = new QVBoxLayout; QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->setMargin(0); mainLayout->setMargin(0);
......
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