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

Method widgetsFromTabIndex

pcsx2-qt/Debugger/Docking/DockViews.cpp:284–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284DockTabBar::WidgetsFromTabIndexResult DockTabBar::widgetsFromTabIndex(int tab_index)
285{
286 KDDockWidgets::Core::TabBar* tab_bar_controller = asController<KDDockWidgets::Core::TabBar>();
287 if (!tab_bar_controller)
288 return {};
289
290 KDDockWidgets::Core::DockWidget* dock_controller = tab_bar_controller->dockWidgetAt(tab_index);
291 if (!dock_controller)
292 return {};
293
294 auto dock_view = static_cast<KDDockWidgets::QtWidgets::DockWidget*>(dock_controller->view());
295
296 DebuggerView* widget = qobject_cast<DebuggerView*>(dock_view->widget());
297 if (!widget)
298 return {};
299
300 return {widget, dock_controller, dock_view};
301}
302
303void DockTabBar::mouseDoubleClickEvent(QMouseEvent* event)
304{

Callers

nothing calls this directly

Calls 1

viewMethod · 0.80

Tested by

no test coverage detected