• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Plasma

wallpaperpreview.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2008  Petri Damsten <damu@iki.fi>
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License as
00006  * published by the Free Software Foundation; either version 2 of
00007  * the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
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

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal