blob: 04fec0d7bfb91566e266a6f4ff25a277de3634c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
|