#include <shadewidget.h>
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 |
HoverPoints * | hoverPoints () const |
QRgb | colorAt (int x) |
Private Member Functions | |
void | generateShade () |
Enumerates the ShateType options.
ShadeWidget::ShadeWidget | ( | ShadeType | type, | |
QWidget * | parent | |||
) |
Constructor that creates a color or alpha ShadeWidget.
void ShadeWidget::setGradientStops | ( | const QGradientStops & | stops | ) |
Sets the gradient stops position and color from the given stops.
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 |
QSize ShadeWidget::sizeHint | ( | ) | const |
QPolygonF ShadeWidget::points | ( | ) | const |
HoverPoints* ShadeWidget::hoverPoints | ( | ) | const [inline] |
QRgb ShadeWidget::colorAt | ( | int | x | ) |
Gets the current color of the ShadeWidet at the specific position.
x | is the position from which the color should be taken. |
void ShadeWidget::colorsChanged | ( | ) | [signal] |
A signal that is send on change of the colors.
void ShadeWidget::generateShade | ( | ) | [private] |
Generates the backround.