diff --git a/src/Gui/QSint/actionpanel/actiongroup.cpp b/src/Gui/QSint/actionpanel/actiongroup.cpp index a35d5a3b8d..9f90350619 100644 --- a/src/Gui/QSint/actionpanel/actiongroup.cpp +++ b/src/Gui/QSint/actionpanel/actiongroup.cpp @@ -60,14 +60,6 @@ void ActionGroup::init(bool hasHeader) connect(myHeader.get(), &TaskHeader::activated, this, &ActionGroup::showHide); } -void ActionGroup::setScheme(ActionPanelScheme *scheme) -{ - myScheme = scheme; - myHeader->setScheme(scheme); - myGroup->setScheme(scheme); - update(); -} - QBoxLayout* ActionGroup::groupLayout() { return myGroup->groupLayout(); diff --git a/src/Gui/QSint/actionpanel/actiongroup.h b/src/Gui/QSint/actionpanel/actiongroup.h index 5ab5281709..a2c50aa97e 100644 --- a/src/Gui/QSint/actionpanel/actiongroup.h +++ b/src/Gui/QSint/actionpanel/actiongroup.h @@ -74,14 +74,6 @@ public: */ QBoxLayout* groupLayout(); - - /** - * @brief Sets the scheme for the panel and all its child groups. - * - * By default, `ActionPanelScheme::defaultScheme()` is used. - */ - void setScheme(ActionPanelScheme *scheme); - /** * @brief Checks if the group can collapse or expand. */ diff --git a/src/Gui/QSint/actionpanel/actionpanel.cpp b/src/Gui/QSint/actionpanel/actionpanel.cpp index cc9c096355..e50b055395 100644 --- a/src/Gui/QSint/actionpanel/actionpanel.cpp +++ b/src/Gui/QSint/actionpanel/actionpanel.cpp @@ -34,13 +34,6 @@ void ActionPanel::setScheme(ActionPanelScheme *scheme) myScheme = scheme; setStyleSheet(myScheme->actionStyle); - // Set scheme for children - for (QObject *obj : children()) { - if (auto *group = qobject_cast(obj)) { - group->setScheme(scheme); - } - } - update(); }