# class KColorCells

###

Module | kdeui
Namespace |
Class | KColorCells
Inherits | QTableWidget

A table of editable color cells.

Author Martin Jones <mjones@kde.org>

### methods

- KColorCells (parent, rows, columns)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  rows | int |
  columns | int |

  Constructs a new table of color cells, consisting of rows * columns colors.

  parent - The parent of the new widget

  rows - The number of rows in the table

  columns - The number of columns in the table

- KColorCells (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KColorCells |

- color (index)

  returns QColor

  Argument | Type | Default
  --- | --- | ---
  index | int |

  Returns the color at a given index in the table

- colorDoubleClicked (index, color)

  returns Nothing
  SIGNAL ("colorDoubleClicked (int, const QColor&)")

  Argument | Type | Default
  --- | --- | ---
  index | int |
  color | QColor |

  Emitted when a color in the table is double-clicked

- colorSelected (index, color)

  returns Nothing
  SIGNAL ("colorSelected (int, const QColor&)")

  Argument | Type | Default
  --- | --- | ---
  index | int |
  color | QColor |

  Emitted when a color is selected in the table

- count ( )

  returns int

  Returns the total number of color cells in the table

- dragEnterEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QDragEnterEvent |

- dragMoveEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QDragMoveEvent |

- dropEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QDropEvent |

- mouseDoubleClickEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QMouseEvent |

- mouseMoveEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QMouseEvent |

- mousePressEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QMouseEvent |

- mouseReleaseEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QMouseEvent |

- positionToCell (pos, ignoreBorders)

  returns int

  Argument | Type | Default
  --- | --- | ---
  pos | QPoint |
  ignoreBorders | bool | 0

- resizeEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QResizeEvent |

- selectedIndex ( )

  returns int

  Returns the index of the cell which is currently selected

- setAcceptDrags (acceptDrags)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  acceptDrags | bool |

- setColor (index, col)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  index | int |
  col | QColor |

  Sets the color in the given index in the table

- setSelected (index)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  index | int |

  Sets the currently selected cell to index

- setShading (shade)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  shade | bool |

- sizeHintForColumn (column)

  returns int

  Argument | Type | Default
  --- | --- | ---
  column | int |

- sizeHintForRow (column)

  returns int

  Argument | Type | Default
  --- | --- | ---
  column | int |