Plasma
color.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 #ifndef COLOR_HEADER
00021 #define COLOR_HEADER
00022
00023 #include <QColor>
00024 #include <Plasma/Wallpaper>
00025 #include "ui_config.h"
00026
00027 class Color : public Plasma::Wallpaper
00028 {
00029 Q_OBJECT
00030 public:
00031 Color(QObject* parent, const QVariantList& args);
00032
00033 virtual void save(KConfigGroup &config);
00034 virtual void paint(QPainter* painter, const QRectF& exposedRect);
00035 virtual QWidget* createConfigurationInterface(QWidget* parent);
00036
00037 protected:
00038 virtual void init(const KConfigGroup &config);
00039
00040 protected slots:
00041 void setColor(const QColor& color);
00042
00043 private:
00044 Ui::Config m_ui;
00045 QColor m_color;
00046 };
00047
00048 K_EXPORT_PLASMA_WALLPAPER(color, Color)
00049
00050 #endif