#include <ColorButton.h>
This button contains two widgets: 1) A frame reflecting the current color 2) A button showing a color wheel to select the color
Signals | |
void | clicked () |
Signal clicked: This is emitted when the selection button is clicked. | |
Public Member Functions | |
QColor | color () const |
Get the color of the display part. | |
ColorButton (QWidget *parent=0) | |
Constructor. | |
void | setColor (const QColor &c) |
Set the color of the display part. | |
QSize | sizeHint () const |
Protected Member Functions | |
void | init () |
Initialize the widget (called from constructor). | |
Private Attributes | |
int | btn_size |
QFrame * | display |
QPushButton * | selectButton |
ColorButton::ColorButton | ( | QWidget * | parent = 0 |
) |
Constructor.
void ColorButton::clicked | ( | ) | [signal] |
Signal clicked: This is emitted when the selection button is clicked.
QColor ColorButton::color | ( | ) | const |
Get the color of the display part.
void ColorButton::init | ( | ) | [protected] |
Initialize the widget (called from constructor).
void ColorButton::setColor | ( | const QColor & | c | ) |
Set the color of the display part.
QSize ColorButton::sizeHint | ( | ) | const |
int ColorButton::btn_size [private] |
QFrame* ColorButton::display [private] |
QPushButton* ColorButton::selectButton [private] |