MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / createToolsMenu

Method createToolsMenu

pcsx2-qt/Debugger/Docking/DockManager.cpp:335–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335void DockManager::createToolsMenu(QMenu* menu)
336{
337 menu->clear();
338
339 if (m_current_layout == DockLayout::INVALID_INDEX || !g_debugger_window)
340 return;
341
342 for (QToolBar* widget : g_debugger_window->findChildren<QToolBar*>())
343 {
344 QAction* action = menu->addAction(widget->windowTitle());
345 action->setText(widget->windowTitle());
346 action->setCheckable(true);
347 action->setChecked(widget->isVisible());
348 connect(action, &QAction::triggered, this, [widget]() {
349 widget->setVisible(!widget->isVisible());
350 });
351 menu->addAction(action);
352 }
353}
354
355void DockManager::createWindowsMenu(QMenu* menu)
356{

Callers 1

DebuggerWindowMethod · 0.80

Calls 2

setVisibleMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected