File: aquariusbutton.h

package info (click to toggle)
baghira 0.8-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 5,536 kB
  • ctags: 2,445
  • sloc: cpp: 18,279; sh: 10,064; perl: 2,760; makefile: 230
file content (37 lines) | stat: -rw-r--r-- 621 bytes parent folder | download
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