KGradientSelector Class Reference
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...
#include <kselect.h>
Inheritance diagram for KGradientSelector:


Public Member Functions | |
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 Member Functions | |
virtual void | drawContents (QPainter *) |
virtual QSize | minimumSize () const |
virtual void | virtual_hook (int id, void *data) |
Properties | |
QColor | firstColor |
QColor | secondColor |
QString | firstText |
QString | secondText |
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.

KDE Gradient Selector Widget
Definition at line 293 of file kselect.h.
Constructor & Destructor Documentation
|
Constructs a horizontal color selector which contains a gradient between white and black.
Definition at line 379 of file kselect.cpp. |
|
Constructs a colors selector with orientation o which contains a gradient between white and black.
Definition at line 386 of file kselect.cpp. |
|
Destructs the widget.
Definition at line 394 of file kselect.cpp. |
Member Function Documentation
|
Sets the two colors which span the gradient.
|
|
Set each color on its own.
|
|
Set each description on its own.
|
|
Override this function to draw the contents of the control. The default implementation does nothing. Draw only within contentsRect(). Reimplemented from KSelector. Definition at line 407 of file kselect.cpp. References KSelector::contentsRect(), KImageEffect::dither(), and KSelector::orientation(). |
The documentation for this class was generated from the following files: