SUMMARY Using the `AbstractButton.TextUnderIcon` display mode in buttons doesn't work anymore. STEPS TO REPRODUCE 1. Set `display: AbstractButton.TextUnderIcon` in a `Button` element on QML. 2. Build the application, see that it didn't change anything. OBSERVED RESULT Text is still to the side of the icon. EXPECTED RESULT For text to be below the icon. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora Kinoite 40 KDE Plasma Version: 6.0.5 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.1
Yeah, it's broken. :/
Have it even worked for a Button though? It's only implemented for ToolButton, because if I recall correctly those two types have surprisingly different API in QStyle which does the actual work.
(In reply to ratijas from comment #2) > Have it even worked for a Button though? It's only implemented for > ToolButton, because if I recall correctly those two types have surprisingly > different API in QStyle which does the actual work. You can see it working in the Kirigami Gallery ("Misc. Widgets" section), sort of... https://i.ibb.co/Sv8Tcky/Screenshot-20240620-022230.png
I'm not at my laptop right now, but I'm almost sure those are ToolButton instances
Indeed, that is a regular ActionToolBar without any custom display component in it's actions, meaning what you are showing are ToolButtons. https://github.com/KDE/kirigami-gallery/blob/11761e467bd78291063fce77c20127e4215a1f62/src/data/contents/ui/gallery/MiscGallery.qml#L66
(In reply to ratijas from comment #5) > Indeed, that is a regular ActionToolBar without any custom display component > in it's actions, meaning what you are showing are ToolButtons. > > https://github.com/KDE/kirigami-gallery/blob/ > 11761e467bd78291063fce77c20127e4215a1f62/src/data/contents/ui/gallery/ > MiscGallery.qml#L66 You're right, I didn't notice that, so my bad. :/ So, I guess this is a feature request rather than a bug. Should I delete this, or just re-word it?
It is a feature request then. I'll reword the title. Pretty sure you can delete anything here, and neither can I, nor.should.it be needed.