libplasma
dialog.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
00021
00022 #ifndef PLASMA_DIALOG_H
00023 #define PLASMA_DIALOG_H
00024
00025 #include <QtGui/QWidget>
00026 #include <QtGui/QGraphicsSceneEvent>
00027 #include <QtGui/QGraphicsView>
00028
00029 #include <plasma/plasma_export.h>
00030
00031
00032
00033 namespace Plasma
00034 {
00035 class Svg;
00036
00048 class PLASMA_EXPORT Dialog : public QWidget
00049 {
00050 Q_OBJECT
00051
00052 public:
00057 explicit Dialog( QWidget * parent = 0,Qt::WindowFlags f = Qt::Window );
00058 virtual ~Dialog();
00065 void position(QGraphicsSceneEvent *event, const QRectF boundingRect, QPointF scenePos);
00066
00072 void position(QGraphicsView * view,const QRectF boundingRect,QPointF scenePos);
00073
00074 protected:
00078 void paintEvent( QPaintEvent *e );
00079
00080 private:
00084 void paintBackground(QPainter* painter, const QRect &exposedRect);
00089 Plasma::Svg *m_background;
00094 QPixmap *m_cachedBackground;
00095 };
00096
00097 }
00098
00099 #endif