Bug 426578 - Show icons on buttons
Summary: Show icons on buttons
Status: REPORTED
Alias: None
Product: QtCurve
Classification: Frameworks and Libraries
Component: qt5 (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Yichao Yu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-15 21:58 UTC by Random Person
Modified: 2020-09-16 09:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?