@@ -71,6 +71,7 void VisualizationTabWidget::accept(IVisualizationWidgetVisitor *visitor) | |||||
71 | // Apply visitor to zone children |
|
71 | // Apply visitor to zone children | |
72 | for (auto i = 0; i < layout()->count(); ++i) { |
|
72 | for (auto i = 0; i < layout()->count(); ++i) { | |
73 | if (auto item = layout()->itemAt(i)) { |
|
73 | if (auto item = layout()->itemAt(i)) { | |
|
74 | // Widgets different from zones are not visited (no action) | |||
74 | if (auto visualizationZoneWidget |
|
75 | if (auto visualizationZoneWidget | |
75 | = dynamic_cast<VisualizationZoneWidget *>(item->widget())) { |
|
76 | = dynamic_cast<VisualizationZoneWidget *>(item->widget())) { | |
76 | visualizationZoneWidget->accept(visitor); |
|
77 | visualizationZoneWidget->accept(visitor); |
@@ -89,6 +89,7 void VisualizationWidget::accept(IVisualizationWidgetVisitor *visitor) | |||||
89 |
|
89 | |||
90 | // Apply visitor for tab children |
|
90 | // Apply visitor for tab children | |
91 | for (auto i = 0; i < ui->tabWidget->count(); ++i) { |
|
91 | for (auto i = 0; i < ui->tabWidget->count(); ++i) { | |
|
92 | // Widgets different from tabs are not visited (no action) | |||
92 | if (auto visualizationTabWidget |
|
93 | if (auto visualizationTabWidget | |
93 | = dynamic_cast<VisualizationTabWidget *>(ui->tabWidget->widget(i))) { |
|
94 | = dynamic_cast<VisualizationTabWidget *>(ui->tabWidget->widget(i))) { | |
94 | visualizationTabWidget->accept(visitor); |
|
95 | visualizationTabWidget->accept(visitor); |
@@ -66,6 +66,7 void VisualizationZoneWidget::accept(IVisualizationWidgetVisitor *visitor) | |||||
66 | auto layout = ui->visualizationZoneFrame->layout(); |
|
66 | auto layout = ui->visualizationZoneFrame->layout(); | |
67 | for (auto i = 0; i < layout->count(); ++i) { |
|
67 | for (auto i = 0; i < layout->count(); ++i) { | |
68 | if (auto item = layout->itemAt(i)) { |
|
68 | if (auto item = layout->itemAt(i)) { | |
|
69 | // Widgets different from graphs are not visited (no action) | |||
69 | if (auto visualizationGraphWidget |
|
70 | if (auto visualizationGraphWidget | |
70 | = dynamic_cast<VisualizationGraphWidget *>(item->widget())) { |
|
71 | = dynamic_cast<VisualizationGraphWidget *>(item->widget())) { | |
71 | visualizationGraphWidget->accept(visitor); |
|
72 | visualizationGraphWidget->accept(visitor); |
General Comments 0
You need to be logged in to leave comments.
Login now