ShadeWidget Class Reference

#include <shadewidget.h>

List of all members.

Public Types

enum  ShadeType

Signals

void colorsChanged ()

Public Member Functions

 ShadeWidget (ShadeType type, QWidget *parent)
void setGradientStops (const QGradientStops &stops)
void paintEvent (QPaintEvent *e)
QSize minimumSizeHint () const
QSize sizeHint () const
QPolygonF points () const
HoverPointshoverPoints () const
QRgb colorAt (int x)

Private Member Functions

void generateShade ()


Detailed Description

The shadewidget class is a drawable rectangle in which points and a color or alpha gradient can be drawn.

Member Enumeration Documentation

Enumerates the ShateType options.


Constructor & Destructor Documentation

ShadeWidget::ShadeWidget ( ShadeType  type,
QWidget *  parent 
)

Constructor that creates a color or alpha ShadeWidget.

Returns:
The pointer to the created color or alpha ShadeWidget.


Member Function Documentation

void ShadeWidget::setGradientStops ( const QGradientStops &  stops  ) 

Sets the gradient stops position and color from the given stops.

Parameters:
stops are the gradient stops which should be set.

void ShadeWidget::paintEvent ( QPaintEvent *  e  ) 

Paints the backround, points and the connection lines.

QSize ShadeWidget::minimumSizeHint (  )  const

Returns:
The minimum size hint for the Widget.

QSize ShadeWidget::sizeHint (  )  const

Returns:
The size hint for the Widget.

QPolygonF ShadeWidget::points (  )  const

Returns:
The points of this ShadeWidget.

HoverPoints* ShadeWidget::hoverPoints (  )  const [inline]

Returns:
The pointer to the hover points of this ShadeWidget.

QRgb ShadeWidget::colorAt ( int  x  ) 

Gets the current color of the ShadeWidet at the specific position.

Parameters:
x is the position from which the color should be taken.
Returns:
The color at the position.

void ShadeWidget::colorsChanged (  )  [signal]

A signal that is send on change of the colors.

void ShadeWidget::generateShade (  )  [private]

Generates the backround.


The documentation for this class was generated from the following files:

Generated on Mon Jan 19 03:19:32 2009 by  doxygen 1.5.6