Revision 929146
Go back to digest for 22nd February 2009Optimization in KDE Base
Aaron J. Seigo committed changes in /trunk/KDE/kdeplasma-addons/applets/frame:
major refactoring of things:
* consistent naming of member variables
* rely on QGraphicsItem to do the caching for us and make paintInterface a naive painter
* make the SlideShow tell the outside world when there is a new image to show
* let the SlideShow handle potd dataengine updates
* don't hold onto the source image in memory for longer than needed
so now the SlideShow handles all the image loading and the Applet just paints whenever it's told to.
the performance increase is impressive and instantly recognizable: try rotating or dragging an image frame around the desktop.
File Changes
Modified 4 files
- /trunk/KDE/kdeplasma-addons/applets/frame
- /frame.cpp
- /frame.h
- /slideshow.cpp
- /slideshow.h
4 files changed in total