From 259a9dba37ed0bb753d66b1ded9239a7993b642e Mon Sep 17 00:00:00 2001 From: Paddle Date: Fri, 13 Oct 2023 17:54:13 +0200 Subject: [PATCH] Add setHeaderIcon to actiongroup.h --- src/Gui/QSint/actionpanel/actiongroup.cpp | 5 +++++ src/Gui/QSint/actionpanel/actiongroup.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/Gui/QSint/actionpanel/actiongroup.cpp b/src/Gui/QSint/actionpanel/actiongroup.cpp index 2a3ae49a50..a1007600ea 100644 --- a/src/Gui/QSint/actionpanel/actiongroup.cpp +++ b/src/Gui/QSint/actionpanel/actiongroup.cpp @@ -248,6 +248,11 @@ void ActionGroup::setHeaderText(const QString & headerText) myHeader->myTitle->setText(headerText); } +void ActionGroup::setHeaderIcon(const QPixmap& icon) +{ + myHeader->myTitle->setIcon(icon); +} + QSize ActionGroup::minimumSizeHint() const { diff --git a/src/Gui/QSint/actionpanel/actiongroup.h b/src/Gui/QSint/actionpanel/actiongroup.h index 479fe18477..41a29620d4 100644 --- a/src/Gui/QSint/actionpanel/actiongroup.h +++ b/src/Gui/QSint/actionpanel/actiongroup.h @@ -147,6 +147,7 @@ public Q_SLOTS: \sa headerText(). */ void setHeaderText(const QString & title); + void setHeaderIcon(const QPixmap& icon); protected Q_SLOTS: void processHide();