Visning af rotwidget.h

#ifndef         __ROTWIDGET_H__
#define         __ROTWIDGET_H__

#include <qlabel.h>
#include <qtimer.h>
#include <qwidget.h>

#include <kdialogbase.h>
#include <kpixmap.h>

/**
 * @short Display a rotating-gradient widget.
 */
class         RotWidget: public QWidget
{
  Q_OBJECT
public:
  RotWidget( QWidget *, const QColor&, const QColor&, int );
  ~RotWidget();

private slots:
  void stepEvent();

protected:
  void        preparePixmap( int );
  void        paintEvent( QPaintEvent * );
  void        resizeEvent( QResizeEvent * );

  QColor m_color1, m_color2;
  int m_step, m_speed;
  QTimer *m_stepTimer;

  QList<KPixmap> m_stepPixmap;
};

#endif