diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-03-21 20:35:05 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-03-21 20:35:05 +0100 |
commit | 066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce (patch) | |
tree | 4cb26eb8ace976f7d0c8607dc2d3de2b5107670c /deco/config/aquariusbutton.h | |
download | tde-style-baghira-066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce.tar.gz tde-style-baghira-066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce.zip |
Initial import of baghira 0.8
Diffstat (limited to 'deco/config/aquariusbutton.h')
-rw-r--r-- | deco/config/aquariusbutton.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/deco/config/aquariusbutton.h b/deco/config/aquariusbutton.h new file mode 100644 index 0000000..04fec0d --- /dev/null +++ b/deco/config/aquariusbutton.h @@ -0,0 +1,37 @@ +#ifndef AQUARIUSBUTTON_H +#define AQUARIUSBUTTON_H + +//#include <qvariant.h> +#include <qwidget.h> +#include <qimage.h> + +class QPixmap; +class QColor; + +class AquariusButton : public QWidget +{ + Q_OBJECT + +public: + AquariusButton( QPixmap &pixmap, QWidget* parent = 0, const char* name = 0); + ~AquariusButton(); + QColor Color(); + +public slots: + void setColor(QColor c); + +protected: + QPixmap pixmap; + QImage image; + QColor color; + void tint(QColor &c); + void mousePressEvent( QMouseEvent *e ); + void paintEvent( QPaintEvent *e); + + +signals: + void clicked(); + +}; + +#endif // AQUARIUSBUTTON_H |