|
|
This widget can be used to display or allow user selection of a colour.
See also: KColorDialog
KColorButton ( QWidget *parent, const char *name = 0L ) |
Constructor. Create a KColorButton.
KColorButton ( const QColor &c, QWidget *parent, const char *name = 0L ) |
Constructor. Create a KColorButton.
Parameters:
c | The initial colour of the button. |
~KColorButton () |
Destructor.
const QColor color () |
The current colour.
Returns: The current colour.
void setColor ( const QColor &c ) |
Set the current colour.
Parameters:
c | The colour to set. |
void changed ( const QColor &newColor ) |
This signal will be emitted when the colour of the widget is changed, either with setColor or via user selection.
void slotClicked () |
void drawButtonLabel ( QPainter *p ) |
Reimplemented from QPushButton