Plasma
busywidget.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef PLASMA_BUSYWIDGET_H
00021 #define PLASMA_BUSYWIDGET_H
00022
00023 #include <QtGui/QGraphicsWidget>
00024
00025 #include <plasma/plasma_export.h>
00026
00027 class QFrame;
00028
00029 namespace Plasma
00030 {
00031
00032 class BusyWidgetPrivate;
00033
00041 class PLASMA_EXPORT BusyWidget : public QGraphicsWidget
00042 {
00043 Q_OBJECT
00044
00045 public:
00051 explicit BusyWidget(QGraphicsWidget *parent = 0);
00052 ~BusyWidget();
00053
00054 protected:
00055 void paint(QPainter *painter,
00056 const QStyleOptionGraphicsItem *option,
00057 QWidget *widget = 0);
00058
00059 void showEvent(QShowEvent *event);
00060 void hideEvent(QHideEvent *event);
00061 void resizeEvent(QGraphicsSceneResizeEvent *event);
00062
00063 protected Q_SLOTS:
00064 void timerEvent(QTimerEvent *event);
00065
00066 private:
00067 BusyWidgetPrivate * const d;
00068
00069 Q_PRIVATE_SLOT(d, void themeChanged())
00070 };
00071
00072 }
00073
00074 #endif // multiple inclusion guard