QML Buttons and SVG images

Sebastian Kügler sebas at kde.org
Tue Nov 6 11:55:32 UTC 2012


Hey Dmitry

On Tuesday, November 06, 2012 14:22:39 Dmitry A. Ashkadov wrote:
> So, if I understand you right, now I shouldn't use QML Button instead of
> IconWidget? If I remove IconWidget then:

IconWidget is something we want to get rid of at some point anyway.

> * I will have to work with QAction in QML myself (there is thread about
> QAction). 

We've found working solutions, if you run into problems, feel free to ping me.

> * An icon won't be highlighted when user moves mouse cursor over
> icon. 

Quite easy to do with the MouseArea.

> * An animation of icon, if user clicks on it, won't work.

That's as easy as:

onPressed: PlasmaExtras.PressedAnimation {}
onReleased: PlasmaExtras.ReleaseAnimation {}

> P.S. If my review request was approved, my next work would be easier. 

Don't worry, you're doing fine. Nothing wrong with diligent reviews, though, 
and sometimes it just takes a bit to make things perfect. :)

Cheers,
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9


More information about the Plasma-devel mailing list