[pim/akonadi/release/26.08] src/widgets: agentinstancewidget - use a smaller icon size for agents
Allen Winter <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 47635f47b21333324e5a990e0409796eceea2fec by Allen Winter. Committed on 22/07/2026 at 13:03. Pushed by winterz into branch 'release/26.08'. agentinstancewidget - use a smaller icon size for agents Currently the icon size is specified by QStyle::PM_MessageBoxIconSize which is rather large; instead use QStyle::PM_ListViewIconSize. (ie. shrink the icon size to 22x22) screenshots will be added to show the difference (cherry picked from commit 54b37e4fbb8cde23a1d6a966a3354eff297d980c) Co-authored-by: Allen Winter <[email protected]> M +1 -1 src/widgets/agentinstancewidget.cpp https://invent.kde.org/pim/akonadi/-/commit/47635f47b21333324e5a990e0409796eceea2fec diff --git a/src/widgets/agentinstancewidget.cpp b/src/widgets/agentinstancewidget.cpp index e5a39af3f..0349cc74c 100644 --- a/src/widgets/agentinstancewidget.cpp +++ b/src/widgets/agentinstancewidget.cpp @@ -259,7 +259,7 @@ void AgentInstanceWidgetDelegate::paint(QPainter *painter, const QStyleOptionVie statusMessage.append(QStringLiteral(" ") + i18nc("Status percent value", "(%1%)", progress)); } - const QPixmap iconPixmap = icon.pixmap(style->pixelMetric(QStyle::PM_MessageBoxIconSize)); + const QPixmap iconPixmap = icon.pixmap(style->pixelMetric(QStyle::PM_ToolBarIconSize)); QRect innerRect = option.rect.adjusted(s_delegatePaddingSize, s_delegatePaddingSize, -s_delegatePaddingSize,