• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

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:

Inheritance graph
[legend]

List of all members.


Public Member Functions

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

Protected Member Functions

virtual void drawContents (QPainter *)
virtual QSize minimumSize () const
virtual void virtual_hook (int id, void *data)

Properties

QColor firstColor
QString firstText
QColor secondColor
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.

kgradientselector.png

KDE Gradient Selector Widget

Definition at line 293 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.

Definition at line 406 of file kselect.cpp.

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.

Definition at line 413 of file kselect.cpp.

KGradientSelector::~KGradientSelector (  ) 

Destructs the widget.

Definition at line 421 of file kselect.cpp.


Member Function Documentation

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

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 434 of file kselect.cpp.

const QColor KGradientSelector::firstColor (  )  const [inline]

Definition at line 341 of file kselect.h.

const QString KGradientSelector::firstText (  )  const [inline]

Definition at line 346 of file kselect.h.

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

Reimplemented from QWidget.

Definition at line 354 of file kselect.h.

const QColor KGradientSelector::secondColor (  )  const [inline]

Definition at line 343 of file kselect.h.

const QString KGradientSelector::secondText (  )  const [inline]

Definition at line 348 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 320 of file kselect.h.

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

Set each color on its own.

Definition at line 328 of file kselect.h.

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

Set each description on its own.

Definition at line 336 of file kselect.h.

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

Definition at line 330 of file kselect.h.

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

Definition at line 338 of file kselect.h.

void KGradientSelector::setText ( const QString &  t1,
const QString &  t2 
) [inline]

Definition at line 322 of file kselect.h.

void KGradientSelector::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Reimplemented from KSelector.

Definition at line 530 of file kselect.cpp.


Property Documentation

QColor KGradientSelector::firstColor [read, write]

Definition at line 297 of file kselect.h.

QString KGradientSelector::firstText [read, write]

Definition at line 299 of file kselect.h.

QColor KGradientSelector::secondColor [read, write]

Definition at line 298 of file kselect.h.

QString KGradientSelector::secondText [read, write]

Definition at line 300 of file kselect.h.


The documentation for this class was generated from the following files:
  • kselect.h
  • kselect.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal