##// END OF EJS Templates
Calls plot refresh when the editor is closed
Alexandre Leroux -
r1013:121d1ac0be46
parent child
Show More
@@ -177,9 +177,11 VisualizationGraphRenderingDelegate::VisualizationGraphRenderingDelegate(
177 void VisualizationGraphRenderingDelegate::onMouseDoubleClick(QMouseEvent *event) noexcept
177 void VisualizationGraphRenderingDelegate::onMouseDoubleClick(QMouseEvent *event) noexcept
178 {
178 {
179 // Opens color scale editor if color scale is double clicked
179 // Opens color scale editor if color scale is double clicked
180 if (auto colorScale
180 auto colorScale = dynamic_cast<QCPColorScale *>(impl->m_Plot.layoutElementAt(event->pos()));
181 = dynamic_cast<QCPColorScale *>(impl->m_Plot.layoutElementAt(event->pos()))) {
181 if (impl->m_ColorScale.m_Scale == colorScale) {
182 ColorScaleEditor{}.exec();
182 if (ColorScaleEditor{impl->m_ColorScale}.exec() == QDialog::Accepted) {
183 impl->m_Plot.replot();
184 }
183 }
185 }
184 }
186 }
185
187
General Comments 0
You need to be logged in to leave comments. Login now