| 367 | } |
| 368 | |
| 369 | size_t DockLayout::countDebuggerViewsOfType(const char* type) |
| 370 | { |
| 371 | size_t count = 0; |
| 372 | for (const auto& [unique_name, widget] : m_widgets) |
| 373 | { |
| 374 | if (strcmp(widget->metaObject()->className(), type) == 0) |
| 375 | count++; |
| 376 | } |
| 377 | |
| 378 | return count; |
| 379 | } |
| 380 | |
| 381 | void DockLayout::createDebuggerView(const std::string& type) |
| 382 | { |