#include <ColorButton.h>
The QPushButton displays its current color. When clicked it pops-up a QColorDialog allowing to select the color to be displayed.
Signals | |
| void | colorChanged () |
Public Member Functions | |
| QColor | color () |
| Get the current color. | |
| ColorButton (QWidget *parent=0) | |
| Constructor. | |
| void | setColor (const QColor &c) |
| Set the current color to be displayed. | |
Private Slots | |
| void | pickColor () |
Private Member Functions | |
| void | updateColor () |
Private Attributes | |
| QColor | d_color |
| Current color. | |
|
|
Constructor.
|
|
|
Get the current color.
|
|
|
|
|
|
|
|
|
Set the current color to be displayed.
|
|
|
|
|
|
Current color.
|
1.4.6