Bug 426578

Summary: Show icons on buttons
Product: [Frameworks and Libraries] QtCurve Reporter: Random Person <5iw_3dqug8gj0tsu>
Component: qt5Assignee: Yichao Yu <yyc1992>
Status: REPORTED ---    
Severity: wishlist CC: cfeck, hein
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Random Person 2020-09-15 21:58:00 UTC
Hi,

I mostly use Qt apps without Plasma Desktop (*box, LXQt) and would love to see this feature implemented one day.

Fusion and Qt5 styleplugins loads icons in buttons by default, can the same code be reused for the Qt5-only port?
https://code.qt.io/cgit/qt/qtstyleplugins.git

QtCurve Version: 1.9.0
Qt Version: 5.15.1

Thanks.
Comment 1 Christoph Feck 2020-09-15 22:57:51 UTC
Should be possible by returning 'true' for the QStyle::SH_DialogButtonBox_ButtonsHaveIcons style hint, but I didn't try.
Comment 2 Random Person 2020-09-16 09:17:56 UTC
(In reply to Christoph Feck from comment #1)
> Should be possible by returning 'true' for the
> QStyle::SH_DialogButtonBox_ButtonsHaveIcons style hint, but I didn't try.

I could try it out right now if it's really just 1 line to patch. Which file?