Plasma
wallpaperpreview.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 #ifndef WALLPAPER_PREVIEW_HEADER
00019 #define WALLPAPER_PREVIEW_HEADER
00020
00021 #include <QWidget>
00022
00023 namespace Plasma{
00024 class Wallpaper;
00025 class Svg;
00026 }
00027
00028 class WallpaperPreview : public QWidget
00029 {
00030 Q_OBJECT
00031 public:
00032 WallpaperPreview(QWidget *parent = 0);
00033 virtual ~WallpaperPreview();
00034
00035 void setWallpaper(Plasma::Wallpaper* wallpaper);
00036
00037 protected:
00038 virtual void paintEvent(QPaintEvent* event);
00039 virtual void resizeEvent(QResizeEvent* event);
00040
00041 protected slots:
00042 void updateRect(const QRectF& rect);
00043
00044 private:
00045 Plasma::Wallpaper* m_wallpaper;
00046 Plasma::Svg* m_wallpaperOverlay;
00047 };
00048
00049 #endif // WALLPAPER_PREVIEW