#include <shadewidget.h>
Public Types | |
| enum | ShadeType |
Signals | |
| void | colorsChanged () |
Public Member Functions | |
| ShadeWidget (ShadeType type, QWidget *parent) | |
| void | setHistogramPtr (QPixmap *histogramPtr) |
| void | setGradientStops (const QGradientStops &stops) |
| void | paintEvent (QPaintEvent *e) |
| QSize | sizeHint () const |
| QPolygonF | points () const |
| HoverPoints * | hoverPoints () const |
| uint | 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::setHistogramPtr | ( | QPixmap * | histogramPtr | ) |
Sets the histogram pointer if the widget is a ARGBShade widget.
| histogramPtr | is the pointer which should be set. |
| 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::sizeHint | ( | ) | const |
| QPolygonF ShadeWidget::points | ( | ) | const |
| HoverPoints* ShadeWidget::hoverPoints | ( | ) | const [inline] |
| uint 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.
1.5.6