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

Method updateTheme

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

Source from the content-addressed store, hash-verified

791}
792
793void DockManager::updateTheme()
794{
795 if (m_menu_bar)
796 m_menu_bar->updateTheme();
797
798 for (DockLayout& layout : m_layouts)
799 for (const auto& [unique_name, widget] : layout.debuggerViews())
800 widget->updateStyleSheet();
801
802 // KDDockWidgets::QtWidgets::TabBar sets its own style to a subclass of
803 // QProxyStyle in its constructor, so we need to update that here.
804 for (KDDockWidgets::Core::Group* group : KDDockWidgets::DockRegistry::self()->groups())
805 {
806 auto tab_bar = static_cast<KDDockWidgets::QtWidgets::TabBar*>(group->tabBar()->view());
807 if (QProxyStyle* style = qobject_cast<QProxyStyle*>(tab_bar->style()))
808 style->setBaseStyle(QStyleFactory::create(qApp->style()->name()));
809 }
810}
811
812bool DockManager::isLayoutLocked()
813{

Callers

nothing calls this directly

Calls 3

updateStyleSheetMethod · 0.80
viewMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected