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 namespace Plasma
00032 {
00033
00034 class DialogPrivate;
00035
00047 class PLASMA_EXPORT Dialog : public QWidget
00048 {
00049 Q_OBJECT
00050
00051 public:
00056 explicit Dialog(QWidget * parent = 0, Qt::WindowFlags f = Qt::Window);
00057 virtual ~Dialog();
00064 void position(QGraphicsSceneEvent *event, const QRectF boundingRect, QPointF scenePos);
00065
00071 void position(QGraphicsView * view,const QRectF boundingRect,QPointF scenePos);
00072
00073 protected:
00077 void paintEvent(QPaintEvent *e);
00078 void resizeEvent(QResizeEvent *e);
00079
00080 private:
00081 DialogPrivate * const d;
00085 Q_PRIVATE_SLOT(d, void themeUpdated())
00086 };
00087
00088 }
00089
00090 #endif