00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef OVERLAY_H
00021 #define OVERLAY_H
00022
00023 #include <QGraphicsWidget>
00024
00025 class QGraphicsLinearLayout;
00026
00027 namespace Plasma
00028 {
00029 class FrameSvg;
00030 class ScrollWidget;
00031 }
00032
00033 class Overlay : public QGraphicsWidget
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 Overlay( QGraphicsItem* parent = 0, Qt::WindowFlags wFlags = 0 );
00039
00040 protected:
00041 virtual void keyPressEvent( QKeyEvent* event );
00042 virtual void wheelEvent( QGraphicsSceneWheelEvent* event );
00043 void paint( QPainter* painter, const QStyleOptionGraphicsItem* option,
00044 QWidget* widget = 0 );
00045 void resizeEvent( QGraphicsSceneResizeEvent* event );
00046
00047 QGraphicsLinearLayout* m_contentLayout;
00048 QGraphicsWidget* m_contentWidget;
00049 Plasma::FrameSvg* m_background;
00050 Plasma::ScrollWidget* m_scrollWidget;
00051 };
00052
00053 #endif // OVERLAY_H