@@ -174,6 +174,7 private slots: | |||
|
174 | 174 | void onUpdateVarDisplaying(std::shared_ptr<Variable> variable, const DateTimeRange &range); |
|
175 | 175 | |
|
176 | 176 | void variableUpdated(QUuid id); |
|
177 | void variableDeleted(const std::shared_ptr<Variable>&); | |
|
177 | 178 | }; |
|
178 | 179 | |
|
179 | 180 | #endif // SCIQLOP_VISUALIZATIONGRAPHWIDGET_H |
@@ -428,6 +428,8 VisualizationGraphWidget::VisualizationGraphWidget(const QString &name, QWidget | |||
|
428 | 428 | impl->m_plot->setAttribute(Qt::WA_TransparentForMouseEvents); |
|
429 | 429 | impl->m_plot->setContextMenuPolicy(Qt::CustomContextMenu); |
|
430 | 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 | 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