# class KColorCombo

###

Module | kdeui
Namespace |
Class | KColorCombo
Inherits | QComboBox

Combobox for colors.

The combobox provides some preset colors to be selected, and an entry to select a custom color using a color dialog.

### methods

- KColorCombo (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

  Constructs a color combo box.

- KColorCombo (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KColorCombo |

- KColorCombo (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget | 0

- activated (col)

  returns Nothing
  SIGNAL ("activated (const QColor&)")

  Argument | Type | Default
  --- | --- | ---
  col | QColor |

  Emitted when a new color box has been selected.

- color ( )

  returns QColor

  Returns the currently selected color.

- colors ( )

  returns QList<QColor>

  Return the list of colors available for selection. Returns list of colors

- highlighted (col)

  returns Nothing
  SIGNAL ("highlighted (const QColor&)")

  Argument | Type | Default
  --- | --- | ---
  col | QColor |

  Emitted when a new item has been highlighted.

- isCustomColor ( )

  returns bool

  Find whether the currently selected color is a custom color selected using a color dialog.

- paintEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QPaintEvent |

- setColor (col)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  col | QColor |

  Selects the color col.

- setColors (colors)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  colors | QList<QColor> |

  Set a custom list of colors to choose from, in place of the standard list.

  cols - list of colors. If empty, the selection list reverts to the standard list.

- showEmptyList ( )

  returns Nothing

  Clear the color list and don't show it, till the next setColor() call