@@ -174,6 +174,7 private slots: | |||||
174 | void onUpdateVarDisplaying(std::shared_ptr<Variable> variable, const DateTimeRange &range); |
|
174 | void onUpdateVarDisplaying(std::shared_ptr<Variable> variable, const DateTimeRange &range); | |
175 |
|
175 | |||
176 | void variableUpdated(QUuid id); |
|
176 | void variableUpdated(QUuid id); | |
|
177 | void variableDeleted(const std::shared_ptr<Variable>&); | |||
177 | }; |
|
178 | }; | |
178 |
|
179 | |||
179 | #endif // SCIQLOP_VISUALIZATIONGRAPHWIDGET_H |
|
180 | #endif // SCIQLOP_VISUALIZATIONGRAPHWIDGET_H |
@@ -428,6 +428,8 VisualizationGraphWidget::VisualizationGraphWidget(const QString &name, QWidget | |||||
428 | impl->m_plot->setAttribute(Qt::WA_TransparentForMouseEvents); |
|
428 | impl->m_plot->setAttribute(Qt::WA_TransparentForMouseEvents); | |
429 | impl->m_plot->setContextMenuPolicy(Qt::CustomContextMenu); |
|
429 | impl->m_plot->setContextMenuPolicy(Qt::CustomContextMenu); | |
430 | impl->m_plot->setParent(this); |
|
430 | impl->m_plot->setParent(this); | |
|
431 | ||||
|
432 | connect(&sqpApp->variableController(), &VariableController2::variableDeleted, this, &VisualizationGraphWidget::variableDeleted); | |||
431 | } |
|
433 | } | |
432 |
|
434 | |||
433 |
|
435 | |||
@@ -1409,3 +1411,8 void VisualizationGraphWidget::variableUpdated(QUuid id) | |||||
1409 | } |
|
1411 | } | |
1410 | this->impl->rescaleY(); |
|
1412 | this->impl->rescaleY(); | |
1411 | } |
|
1413 | } | |
|
1414 | ||||
|
1415 | void VisualizationGraphWidget::variableDeleted(const std::shared_ptr<Variable> & variable) | |||
|
1416 | { | |||
|
1417 | this->removeVariable(variable); | |||
|
1418 | } |
General Comments 0
You need to be logged in to leave comments.
Login now