#include <kcolorbutton.h>
Inherits TQPushButton.
Signals | |
void | changed (const TQColor &newColor) |
Public Member Functions | |
KColorButton (TQWidget *parent, const char *name=0L) | |
KColorButton (const TQColor &c, TQWidget *parent, const char *name=0L) | |
KColorButton (const TQColor &c, const TQColor &defaultColor, TQWidget *parent, const char *name=0L) | |
TQColor | color () const |
void | setColor (const TQColor &c) |
TQColor | defaultColor () const |
void | setDefaultColor (const TQColor &c) |
TQSize | sizeHint () const |
Protected Slots | |
void | chooseColor () |
Detailed Description
A pushbutton to display or allow user selection of a color.
This widget can be used to display or allow user selection of a color.
- See also
- KColorDialog
Definition at line 37 of file kcolorbutton.h.
Constructor & Destructor Documentation
◆ KColorButton() [1/3]
KColorButton::KColorButton | ( | TQWidget * | parent, |
const char * | name = 0L |
||
) |
Creates a color button.
Definition at line 41 of file kcolorbutton.cpp.
◆ KColorButton() [2/3]
KColorButton::KColorButton | ( | const TQColor & | c, |
TQWidget * | parent, | ||
const char * | name = 0L |
||
) |
Creates a color button with an initial color c
.
Definition at line 53 of file kcolorbutton.cpp.
◆ KColorButton() [3/3]
KColorButton::KColorButton | ( | const TQColor & | c, |
const TQColor & | defaultColor, | ||
TQWidget * | parent, | ||
const char * | name = 0L |
||
) |
- Since
- 3.1
Definition at line 66 of file kcolorbutton.cpp.
Member Function Documentation
◆ changed
|
signal |
Emitted when the color of the widget is changed, either with setColor() or via user selection.
◆ color()
|
inline |
Returns the currently chosen color.
Definition at line 62 of file kcolorbutton.h.
◆ defaultColor()
TQColor KColorButton::defaultColor | ( | ) | const |
Returns the default color or an invalid color if no default color is set.
- Since
- 3.4
Definition at line 93 of file kcolorbutton.cpp.
◆ setColor()
void KColorButton::setColor | ( | const TQColor & | c | ) |
Sets the current color to c
.
Definition at line 84 of file kcolorbutton.cpp.
◆ setDefaultColor()
void KColorButton::setDefaultColor | ( | const TQColor & | c | ) |
The documentation for this class was generated from the following files: