MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / foreach

Function foreach

gui/qt/debugger.cpp:629–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627
628 QList<QDockWidget*> docks = findChildren<QDockWidget*>();
629 foreach (QDockWidget* dock, docks) {
630 if (dock->windowTitle().contains(TXT_MEM_DOCK)) {
631 if (dock->isVisible()) {
632 QList<QPushButton*> buttons = dock->findChildren<QPushButton*>();
633 QList<QToolButton*> tools = dock->findChildren<QToolButton*>();
634 QList<HexWidget*> editChildren = dock->findChildren<HexWidget*>();
635 QList<QSpinBox*> spinChildren = dock->findChildren<QSpinBox*>();
636 editChildren.first()->setEnabled(state);
637 spinChildren.first()->setEnabled(state);
638 foreach (QPushButton *button, buttons) {
639 button->setEnabled(state);
640 }
641 foreach (QToolButton *tool, tools) {
642 tool->setEnabled(state);
643 }
644 }
645 }
646 }
647
648 debugBasicGuiState(state);
649}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected