# class KGradientSelector

###

Module | kdeui
Namespace |
Class | KGradientSelector
Inherits | KSelector

### methods

- KGradientSelector (parent)

  returns ctor
  KDE 4.1.0 and later only

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

  Constructs a horizontal color selector which contains a gradient between white and black.

- KGradientSelector (o, parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  o | Qt.Orientation |
  parent | QWidget | 0

  Constructs a colors selector with orientation o which contains a gradient between white and black.

- KGradientSelector (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KGradientSelector |

- KGradientSelector (a0)

  returns ctor
  before KDE 4.1.0 only

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

- KGradientSelector (a0, a1)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | Qt.Orientation |
  a1 | QWidget | 0

- drawContents (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QPainter |

- firstColor ( )

  returns QColor

- firstText ( )

  returns QString

- minimumSize ( )

  returns QSize

- secondColor ( )

  returns QColor

- secondText ( )

  returns QString

- setColors (col1, col2)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  col1 | QColor |
  col2 | QColor |

  Sets the two colors which span the gradient.

- setFirstColor (col)

  returns Nothing

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

  Set each color on its own.

- setFirstText (t)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  t | QString |

  Set each description on its own

- setSecondColor (col)

  returns Nothing

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

- setSecondText (t)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  t | QString |

- setText (t1, t2)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  t1 | QString |
  t2 | QString |