class KGradientSelector

# class KGradientSelector | The KGradientSelector widget allows the user to choose from a one-dimensional range of colors which is given as a gradient between two colors provided by the programmer. More...
Definition | `#include <kselect.h>`
Inherits | KSelector [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KGradientSelector ( QWidget *parent=0, const char *name=0 )
- KGradientSelector ( Orientation o, QWidget *parent=0, const char *name=0 )
- ~KGradientSelector ()
- void setColors ( const QColor &col1, const QColor &col2 )
- void setText ( const QString &t1, const QString &t2 )
- void setFirstColor ( const QColor &col )
- void setSecondColor ( const QColor &col )
- void setFirstText ( const QString &t )
- void setSecondText ( const QString &t )
- const QColor firstColor () const
- const QColor secondColor () const
- const QString firstText () const
- const QString secondText () const

#### Protected Methods

- virtual void virtual_hook ( int id, void* data )

## Detailed Description

The KGradientSelector widget allows the user to choose from a one-dimensional range of colors which is given as a gradient between two colors provided by the programmer.

KGradientSelector ( QWidget *parent=0, const char *name=0 ) | ### KGradientSelector

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

KGradientSelector ( Orientation o, QWidget *parent=0, const char *name=0 ) | ### KGradientSelector

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

~KGradientSelector () | ### ~KGradientSelector

Destructs the widget.

void setColors ( const QColor &col1, const QColor &col2 ) | ### setColors

Sets the two colors which span the gradient.

void setText ( const QString &t1, const QString &t2 ) | ### setText

void setFirstColor ( const QColor &col ) | ### setFirstColor

Set each color on its own.

void setSecondColor ( const QColor &col ) | ### setSecondColor

void setFirstText ( const QString &t ) | ### setFirstText

Set each description on its own

void setSecondText ( const QString &t ) | ### setSecondText

const QColor firstColor () | ### firstColor

[const]

const QColor secondColor () | ### secondColor

[const]

const QString firstText () | ### firstText

[const]

const QString secondText () | ### secondText

[const]

void drawContents ( QPainter * ) | ### drawContents

[protected virtual]

Reimplemented from KSelector for internal purposes..

QSize minimumSize () | ### minimumSize

[protected const virtual]

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Reimplemented from KSelector.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.