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;
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;
#define QTX_EXPORT
Definition: Qtx.h:36
For more information see QT documentation.
Definition: SUIT_Application.h:42
Quantity_Color color(const QColor &)
Convert QColor object to Quantity_Color object.
Definition: OCCViewer.cxx:28