blob: 983771b6109f67ec3ef37499c8f2103fc49f8e1a (
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
|
#ifndef MICROKDE_KCOLORBUTTON_H
#define MICROKDE_KCOLORBUTTON_H
#include <qpushbutton.h>
#include <qcolor.h>
#include <kglobal.h>
#include <qpixmap.h>
#include <qlabel.h>
class KColorButton : public QPushButton
{
Q_OBJECT
public:
KColorButton( QWidget *p );
void setColor ( const QColor &);
void setID ( int i) ;
QColor color() const { return mColor ; }
signals:
void changed(const QColor &);
void changedID(const QColor &, int id);
private slots:
void edit();
private:
QColor mColor;
int id;
};
#endif
|