23 #include <tqpushbutton.h>
25 #include <tdelibs_export.h>
27 class KColorButtonPrivate;
40 TQ_PROPERTY( TQColor color READ color WRITE setColor )
41 TQ_PROPERTY( TQColor defaultColor READ defaultColor WRITE setDefaultColor )
52 KColorButton(
const TQColor &c, TQWidget *parent,
const char *name = 0L );
54 KColorButton(
const TQColor &c,
const TQColor &defaultColor, TQWidget *parent,
55 const char *name=0L );
68 void setColor(
const TQColor &c );
75 TQColor defaultColor()
const;
81 void setDefaultColor(
const TQColor &c );
83 TQSize sizeHint()
const;
96 virtual void drawButtonLabel( TQPainter *p );
97 virtual void dragEnterEvent( TQDragEnterEvent *);
98 virtual void dropEvent( TQDropEvent *);
99 virtual void mousePressEvent( TQMouseEvent *e );
100 virtual void mouseMoveEvent( TQMouseEvent *e);
101 virtual void keyPressEvent( TQKeyEvent *e );
108 virtual void virtual_hook(
int id,
void* data );
110 class KColorButtonPrivate;
111 KColorButtonPrivate *d;