[Panel-devel] icons, files and the desktop

Aaron J. Seigo aseigo at kde.org
Thu Dec 27 14:44:59 CET 2007


On Saturday 22 December 2007, Marco Martin wrote:
> On Saturday 22 December 2007, Aaron J. Seigo wrote:
> > On Friday 21 December 2007, Marco Martin wrote:
> > > redrawn, and they appears on mouse leave and disappears on mouse hover,
> > > is there a way to connect an update to a phase animation?
> >
> > not sure i know what you mean by "connect an update to"?
>
> they should be animated by  phase with
> void IconAction::paint(QPainter *painter) const
> {
>     painter->drawPixmap(m_rect.toRect(),
> Phase::self()->animationResult(m_animationId));
> }
> right?
> so  IconAction::paint should be called every time animationResult changes,
> otherwise there is no animation

a repaint of the item passed into animateElement is automatically called on 
each frame advancement. so, no, you don't have to connect anything.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071227/2e09db88/attachment.pgp 


More information about the Panel-devel mailing list