#include <ColorGradient.h>
Public Slots | |
void | setSliderRed (int value) |
void | setSliderGreen (int value) |
void | setSliderBlue (int value) |
Public Member Functions | |
ColorGradient (QWidget *parent=0) | |
~ColorGradient (void) | |
void | paintEvent (QPaintEvent *event) |
void | setColorType (int colorType) |
Private Member Functions | |
QColor | calcStartColor () |
QColor | calcEndColor () |
Private Attributes | |
QColor | startColor |
QColor | stopColor |
int | sliderRed |
int | sliderGreen |
int | sliderBlue |
int | colorType |
Definition at line 11 of file ColorGradient.h.
ColorGradient::ColorGradient | ( | QWidget * | parent = 0 |
) |
Definition at line 3 of file ColorGradient.cpp.
References sliderBlue, sliderGreen, sliderRed, startColor, and stopColor.
ColorGradient::~ColorGradient | ( | void | ) |
Definition at line 12 of file ColorGradient.cpp.
QColor ColorGradient::calcEndColor | ( | ) | [private] |
Definition at line 59 of file ColorGradient.cpp.
References colorType, sliderBlue, sliderGreen, and sliderRed.
Referenced by paintEvent().
QColor ColorGradient::calcStartColor | ( | ) | [private] |
Definition at line 43 of file ColorGradient.cpp.
References colorType, sliderBlue, sliderGreen, and sliderRed.
Referenced by paintEvent().
void ColorGradient::paintEvent | ( | QPaintEvent * | event | ) |
void ColorGradient::setColorType | ( | int | colorType | ) |
Definition at line 76 of file ColorGradient.cpp.
void ColorGradient::setSliderBlue | ( | int | value | ) | [slot] |
void ColorGradient::setSliderGreen | ( | int | value | ) | [slot] |
void ColorGradient::setSliderRed | ( | int | value | ) | [slot] |
int ColorGradient::colorType [private] |
int ColorGradient::sliderBlue [private] |
Definition at line 34 of file ColorGradient.h.
Referenced by calcEndColor(), calcStartColor(), ColorGradient(), and setSliderBlue().
int ColorGradient::sliderGreen [private] |
Definition at line 33 of file ColorGradient.h.
Referenced by calcEndColor(), calcStartColor(), ColorGradient(), and setSliderGreen().
int ColorGradient::sliderRed [private] |
Definition at line 32 of file ColorGradient.h.
Referenced by calcEndColor(), calcStartColor(), ColorGradient(), and setSliderRed().
QColor ColorGradient::startColor [private] |
QColor ColorGradient::stopColor [private] |