Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KGradientSelector Class Reference

#include <kselect.h>

Inheritance diagram for KGradientSelector:

KSelector List of all members.

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 setFirstColor (const QColor &col)
void setFirstText (const QString &t)

Protected Methods

virtual void drawContents (QPainter *)
virtual QSize minimumSize () const
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.

Definition at line 284 of file kselect.h.


Constructor & Destructor Documentation

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

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

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

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

KGradientSelector::~KGradientSelector (    ) 
 

Destructs the widget.


Member Function Documentation

virtual void KGradientSelector::drawContents (  QPainter *    )  [protected, virtual]
 

@reimplemented

Reimplemented from KSelector.

virtual QSize KGradientSelector::minimumSize (    )  const [inline, protected, virtual]
 

@reimplemented

Definition at line 351 of file kselect.h.

void KGradientSelector::setColors (  const QColor &    col1,
const QColor &    col2
)  [inline]
 

Sets the two colors which span the gradient.

Definition at line 311 of file kselect.h.

void KGradientSelector::setFirstColor (  const QColor &    col )  [inline]
 

Set each color on its own.

Definition at line 319 of file kselect.h.

void KGradientSelector::setFirstText (  const QString &    t )  [inline]
 

Set each description on its own

Definition at line 327 of file kselect.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:14 2003 for kdelibs by doxygen1.2.18