|
|
KDualColorButton allows the user to select two cascaded colors (usually a foreground and background color). Other features include drag and drop from other KDE color widgets, a reset to black and white control, and a swap colors control.
When the user clicks on the foreground or background rectangle the rectangle is first sunken and the currentChanged() signal is emitted. Further clicks will present a color dialog and emit either the fgChanged() or bgChanged() if a new color is selected.
Note: With drag and drop when dropping a color the current selected color will be set, while when dragging a color it will use whatever color rectangle the mouse was pressed inside.
enum |
|
Constructs a new KDualColorButton using the default black and white colors.
|
Constructs a new KDualColorButton using the default black and white colors.
BIC: merge with the above next Wednesday, dialogParent defaults to 0L
|
Constructs a new KDualColorButton with the supplied foreground and background colors.
|
Constructs a new KDualColorButton with the supplied foreground and background colors.
BIC: merge with the above next Wednesday, dialogParent defaults to 0L
~ |
QColor |
[const]
Returns the current foreground color.
QColor |
[const]
Returns the current background color.
DualColor |
[const]
Returns the current color item selected by the user.
QColor |
[const]
Returns the color of the selected item.
QSize |
[const virtual]
Returns the minimum size needed to display the widget and all its controls.
void |
[slot]
Sets the foreground color.
void |
[slot]
Sets the background color.
void |
[slot]
Sets the current selected color item.
void |
[slot]
Sets the color of the selected item.
void |
[signal]
Emitted when the foreground color is changed.
void |
[signal]
Emitted when the background color is changed.
void |
[signal]
Emitted when the user changes the current color selection.
void |
[protected virtual]
Sets the supplied rectangles to the proper size and position for the current widget size. You can reimplement this to change the layout of the widget. Restrictions are that the swap control will always be at the top right, the reset control will always be at the bottom left, and you must leave at least a 14x14 space in those corners.
void |
[protected virtual]
void |
[protected virtual]
void |
[protected virtual]
void |
[protected virtual]
void |
[protected virtual]
void |
[protected virtual]