> On July 24, 2014, 4:20 p.m., Martin Gräßlin wrote:
> > Concerning the icon names: for the Desktops Effects KCM the names are 
> > working without me doing anything. So there must be a solution hidden in 
> > the widgets emulating style.

yes, the native style figures out that internally, creates an internal qaction, 
and then uses the icon of the qaction.
it has a couple of drawbacks tough, it's internal api, so may break anytime, 
and returns a qicon, while i actually need the name, to use the icon from the 
plasma theme when available


- Marco


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119455/#review63087
-----------------------------------------------------------


On July 24, 2014, 3:55 p.m., Marco Martin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119455/
> -----------------------------------------------------------
> 
> (Updated July 24, 2014, 3:55 p.m.)
> 
> 
> Review request for KDE Frameworks and Plasma.
> 
> 
> Repository: plasma-framework
> 
> 
> Description
> -------
> 
> this makes Button inherit from the QtControl and annd an accompaining 
> plasma-looking theme
> 
> now, the ugly part of the patch:
> iconSource is an url, so it screws up passing freedesktop compatible names 
> (it expects names of pngs local to the qml file directory, testimony of the 
> main platform target for controls actually being android/ios). one solution 
> may be overriding iconSource as a normal string, but i would like the theme 
> working also on a plain Button, so it extract only the filename from the url.
> 
> 
> Diffs
> -----
> 
>   src/declarativeimports/core/iconitem.cpp 38012cc 
>   src/declarativeimports/plasmacomponents/qml/Button.qml 262e20f 
>   src/declarativeimports/plasmacomponents/qml/styles/ButtonStyle.qml 
> PRE-CREATION 
> 
> Diff: https://git.reviewboard.kde.org/r/119455/diff/
> 
> 
> Testing
> -------
> 
> in both a normal plasma session or the widget gallery buttons work fine, 
> painting is 100% identical
> 
> 
> Thanks,
> 
> Marco Martin
> 
>

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to