23 #ifndef QTXCOLORBUTTON_H
24 #define QTXCOLORBUTTON_H
31 #include <QToolButton>
44 void setColor(
const QColor& );
48 bool isAutoEnabled()
const;
49 void setAutoEnabled(
bool );
51 QString autoText()
const;
52 void setAutoText(
const QString& );
54 QSize sizeHint()
const;
57 void clicked( QColor );
58 void changed( QColor );
61 void onClicked(
bool );
62 void onToggled(
bool );
65 void onAutoClicked(
bool );
66 void onDialogClicked(
bool );
69 virtual void paintEvent( QPaintEvent* );
76 QPixmap buttonIcon(
const QColor& )
const;
77 void drawColor( QPaintDevice*,
const QColor&,
const QColor& = Qt::black,
const int = 1 )
const;
80 typedef QMap<const QToolButton*, QColor>
ColorMap;