Review Request: KPixmapSequence: painting spinners made easy

Sebastian Trueg trueg at
Mon Aug 24 13:21:48 BST 2009

This is an automatically generated e-mail. To reply, visit:

(Updated 2009-08-24 12:21:48.178944)

Review request for kdelibs.


The last commit contained a patch to kdialog by accident.


Showing a spinner to indicate a work in progrss is a typical task. Gwenview does have a nice spinner when loading images. Aurelien and I extracted the code from Gwenview and molded it into three nice classes that allow to create spinners very easily in any situation. At the moment the classes are used in Gwenview and in Nepomuk.

KPixmapSequence: a simple container class that loads a sequence of pixmaps and provides the frames through a simple interface.
KPixmapSequenceOverlayPainter: Installs an event filter to paint a KPixmapSequence onto any widget using Qt::Alignment or a relative placement.
KPixmapSequenceWidget: A simple widget using the overlay painter to draw a spinner while the widget is visible.

We propose an addition to kdeui.

Diffs (updated)

  trunk/KDE/kdelibs/kdeui/CMakeLists.txt 1013393 
  trunk/KDE/kdelibs/kdeui/tests/CMakeLists.txt 1013393 
  trunk/KDE/kdelibs/kdeui/tests/kpixmapsequenceoverlaypaintertest.h PRE-CREATION 
  trunk/KDE/kdelibs/kdeui/tests/kpixmapsequenceoverlaypaintertest.cpp PRE-CREATION 
  trunk/KDE/kdelibs/kdeui/util/kpixmapsequence.h PRE-CREATION 
  trunk/KDE/kdelibs/kdeui/util/kpixmapsequence.cpp PRE-CREATION 
  trunk/KDE/kdelibs/kdeui/util/kpixmapsequenceoverlaypainter.h PRE-CREATION 
  trunk/KDE/kdelibs/kdeui/util/kpixmapsequenceoverlaypainter.cpp PRE-CREATION 
  trunk/KDE/kdelibs/kdeui/util/kpixmapsequencewidget.h PRE-CREATION 
  trunk/KDE/kdelibs/kdeui/util/kpixmapsequencewidget.cpp PRE-CREATION 





More information about the kde-core-devel mailing list