digiKam
Digikam::DGradientSlider Class Reference
+ Inheritance diagram for Digikam::DGradientSlider:

Public Slots

void setLeftValue (double)
 
void setMiddleValue (double)
 
void setRightValue (double)
 

Signals

void leftValueChanged (double)
 
void middleValueChanged (double)
 
void rightValueChanged (double)
 

Public Member Functions

 DGradientSlider (QWidget *const parent=nullptr)
 
int gradientOffset () const
 
double leftValue () const
 
double middleValue () const
 
double rightValue () const
 
void setColors (const QColor &lcolor, const QColor &rcolor)
 
void showMiddleCursor (bool b)
 
 ~DGradientSlider () override
 

Protected Member Functions

void leaveEvent (QEvent *) override
 
void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void paintEvent (QPaintEvent *) override
 

Constructor & Destructor Documentation

◆ DGradientSlider()

Digikam::DGradientSlider::DGradientSlider ( QWidget *const  parent = nullptr)
explicit

◆ ~DGradientSlider()

Digikam::DGradientSlider::~DGradientSlider ( )
override

Member Function Documentation

◆ gradientOffset()

int Digikam::DGradientSlider::gradientOffset ( ) const

◆ leaveEvent()

void Digikam::DGradientSlider::leaveEvent ( QEvent *  )
overrideprotected

◆ leftValue()

double Digikam::DGradientSlider::leftValue ( ) const

◆ leftValueChanged

void Digikam::DGradientSlider::leftValueChanged ( double  )
signal

Referenced by setLeftValue().

◆ middleValue()

double Digikam::DGradientSlider::middleValue ( ) const

◆ middleValueChanged

void Digikam::DGradientSlider::middleValueChanged ( double  )
signal

◆ mouseMoveEvent()

void Digikam::DGradientSlider::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

void Digikam::DGradientSlider::mousePressEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseReleaseEvent()

void Digikam::DGradientSlider::mouseReleaseEvent ( QMouseEvent *  )
overrideprotected

◆ paintEvent()

void Digikam::DGradientSlider::paintEvent ( QPaintEvent *  )
overrideprotected

◆ rightValue()

double Digikam::DGradientSlider::rightValue ( ) const

◆ rightValueChanged

void Digikam::DGradientSlider::rightValueChanged ( double  )
signal

Referenced by setRightValue().

◆ setColors()

void Digikam::DGradientSlider::setColors ( const QColor &  lcolor,
const QColor &  rcolor 
)

◆ setLeftValue

void Digikam::DGradientSlider::setLeftValue ( double  v)
slot

References leftValueChanged(), and middleValueChanged().

Referenced by mouseMoveEvent().

◆ setMiddleValue

void Digikam::DGradientSlider::setMiddleValue ( double  v)
slot

References middleValueChanged().

Referenced by mouseMoveEvent().

◆ setRightValue

void Digikam::DGradientSlider::setRightValue ( double  v)
slot

◆ showMiddleCursor()

void Digikam::DGradientSlider::showMiddleCursor ( bool  b)

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