| 791 | } |
| 792 | |
| 793 | void 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 | |
| 812 | bool DockManager::isLayoutLocked() |
| 813 | { |
nothing calls this directly
no test coverage detected