Is it possible to know when a PlasmaCore IconItem is ready?
Michail Vourlakos
mvourlakos at gmail.com
Thu Jul 28 12:10:24 UTC 2016
The IconItem to be done... scale, and appearScale create the hover animation:
PlasmaCore.IconItem {
id: iconImage
property int newTempSize: Math.floor(panel.iconSize *
wrapper.scale * wrapper.appearScale)
width: newTempSize
height: newTempSize
On 7/28/16, Michail Vourlakos <mvourlakos at gmail.com> wrote:
> David, I had tried it some iterations before in my code path, it wasnt
> as equally performant as the Images solution, I will give it one more
> try...
>
> I suppose you are proposing to drop Images, add a ShaderEffectSource
> with live:false for DropShadow and the animation for hover to add it
> in the PlasmaCore.IconItem right?
>
> PlasmaCore.IconItem {
> id: iconImage
> width: 2 * panel.iconSize - 8
> height: 2 * panel.iconSize - 8
>
> property int newTempSize: Math.floor(panel.iconSize *
> wrapper.scale * wrapper.appearScale)
> width: newTempSize
> height: newTempSize
>
>
>
> On 7/28/16, David Edmundson <david at davidedmundson.co.uk> wrote:
>> ShaderEffectSource with live:false should be equally performant as this
>> (if
>> anything more so).
>> It /should/ also fix your code.
>>
>> Then call scheduleUpdate() whenever onSourceChanged is emitted.
>>
>> We load the pixmap in the polish() event which happens between all QML
>> processing and the frame being rendered.
>> There's no timer.
>>
>
More information about the Plasma-devel
mailing list