On Friday 29 May 2009 03:43:37 Aaron J. Seigo wrote: > in which case an API like this: > > Animation a(item); > a.add(animator.fadeIn()); > Animation b; > b.setParallel(true); > b.add(animator.blur(0.8)); > b.add(animator.bounce(4)); > a.add(b); > a.addPause(10); // a.add(animator.pause(10));? > a.add(animator.fadeOut()); > a.run(250); // builds the qt animation objects and runs it all Looks cool :)
> starts to look not bad as that would be the "degenerate" case with this > being a more common case: > > Animation a(item1, item2); > a.add(animator.flip()); > a.add(animator.bounce(3)); > a.add(animator.moveTo(destination)); > a.run(250); I think this is the most readable solution for it ;) -- Gökmen GÖKSEL Pardus Developer
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel