QML Buttons and SVG images

Dmitry A. Ashkadov dmitry.ashkadov at rosalab.ru
Tue Nov 6 12:40:40 UTC 2012


Thank you, Sebastian!

I think, SvgItem is better than IconWidget even if it isn't possible to implement such highlighting as IconWidget has.

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

I worry about time. Sometimes it isn't possible to continue work because it depends on code that isn't approved yet. 

----- Исходное сообщение -----
От: "Sebastian Kügler" <sebas at kde.org>
Кому: plasma-devel at kde.org
Отправленные: Вторник, 6 Ноябрь 2012 г 15:55:32
Тема: Re: QML Buttons and SVG images

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
_______________________________________________
Plasma-devel mailing list
Plasma-devel at kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


More information about the Plasma-devel mailing list