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