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

Public Slots

void setValue (double value)
 

Signals

void valueChanged (double value)
 

Public Member Functions

 DDoubleSliderSpinBox (QWidget *const parent=nullptr)
 
double fastSliderStep () const
 
void hideEdit ()
 
bool isDragging () const
 
double maximum () const
 
double minimum () const
 
virtual QSize minimumSize () const
 
QSize minimumSizeHint () const override
 
void setBlockUpdateSignalOnDrag (bool block)
 
void setExponentRatio (double dbl)
 
void setFastSliderStep (double step)
 
void setMaximum (double maximum)
 
void setMinimum (double minimum)
 
void setPrefix (const QString &prefix)
 
void setRange (double minimum, double maximum, int decimals=0)
 
void setSingleStep (double value)
 
void setSuffix (const QString &suffix)
 
void showEdit ()
 
QSize sizeHint () const override
 
double value ()
 
 ~DDoubleSliderSpinBox () override
 

Protected Slots

void contextMenuEvent (QContextMenuEvent *event) override
 
void editLostFocus ()
 

Protected Member Functions

void changeEvent (QEvent *e) override
 
QRect downButtonRect (const QStyleOptionSpinBox &spinBoxOptions) const
 
bool eventFilter (QObject *recv, QEvent *e) override
 
void focusInEvent (QFocusEvent *e) override
 
void keyPressEvent (QKeyEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void mousePressEvent (QMouseEvent *e) override
 
void mouseReleaseEvent (QMouseEvent *e) override
 
void paint (QPainter &painter)
 
void paintBreeze (QPainter &painter)
 
void paintEvent (QPaintEvent *e) override
 
void paintFusion (QPainter &painter)
 
void paintPlastique (QPainter &painter)
 
QStyleOptionProgressBar progressBarOptions () const
 
QRect progressRect (const QStyleOptionSpinBox &spinBoxOptions) const
 
void setInternalValue (int value, bool blockUpdateSignal) override
 
QStyleOptionSpinBox spinBoxOptions () const
 
QRect upButtonRect (const QStyleOptionSpinBox &spinBoxOptions) const
 
int valueForX (int x, Qt::KeyboardModifiers modifiers=Qt::NoModifier) const
 
QString valueString () const override
 
void wheelEvent (QWheelEvent *e) override
 

Protected Attributes

DAbstractSliderSpinBoxPrivate *const d_ptr
 

Constructor & Destructor Documentation

◆ DDoubleSliderSpinBox()

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

◆ ~DDoubleSliderSpinBox()

Digikam::DDoubleSliderSpinBox::~DDoubleSliderSpinBox ( )
override

Member Function Documentation

◆ changeEvent()

void Digikam::DAbstractSliderSpinBox::changeEvent ( QEvent *  e)
overrideprotectedinherited

◆ contextMenuEvent

void Digikam::DAbstractSliderSpinBox::contextMenuEvent ( QContextMenuEvent *  event)
overrideprotectedslotinherited

◆ downButtonRect()

QRect Digikam::DAbstractSliderSpinBox::downButtonRect ( const QStyleOptionSpinBox &  spinBoxOptions) const
protectedinherited

◆ editLostFocus

void Digikam::DAbstractSliderSpinBox::editLostFocus ( )
protectedslotinherited

◆ eventFilter()

bool Digikam::DAbstractSliderSpinBox::eventFilter ( QObject *  recv,
QEvent *  e 
)
overrideprotectedinherited

◆ fastSliderStep()

double Digikam::DDoubleSliderSpinBox::fastSliderStep ( ) const

◆ focusInEvent()

void Digikam::DAbstractSliderSpinBox::focusInEvent ( QFocusEvent *  e)
overrideprotectedinherited

◆ hideEdit()

void Digikam::DAbstractSliderSpinBox::hideEdit ( )
inherited

◆ isDragging()

bool Digikam::DAbstractSliderSpinBox::isDragging ( ) const
inherited

◆ keyPressEvent()

void Digikam::DAbstractSliderSpinBox::keyPressEvent ( QKeyEvent *  e)
overrideprotectedinherited

◆ maximum()

double Digikam::DDoubleSliderSpinBox::maximum ( ) const

Referenced by setMaximum(), and setRange().

◆ minimum()

double Digikam::DDoubleSliderSpinBox::minimum ( ) const

Referenced by setMinimum(), and setRange().

◆ minimumSize()

QSize Digikam::DAbstractSliderSpinBox::minimumSize ( ) const
virtualinherited

◆ minimumSizeHint()

QSize Digikam::DAbstractSliderSpinBox::minimumSizeHint ( ) const
overrideinherited

◆ mouseMoveEvent()

void Digikam::DAbstractSliderSpinBox::mouseMoveEvent ( QMouseEvent *  e)
overrideprotectedinherited

◆ mousePressEvent()

void Digikam::DAbstractSliderSpinBox::mousePressEvent ( QMouseEvent *  e)
overrideprotectedinherited

◆ mouseReleaseEvent()

◆ paint()

◆ paintBreeze()

void Digikam::DAbstractSliderSpinBox::paintBreeze ( QPainter &  painter)
protectedinherited

◆ paintEvent()

void Digikam::DAbstractSliderSpinBox::paintEvent ( QPaintEvent *  e)
overrideprotectedinherited

◆ paintFusion()

void Digikam::DAbstractSliderSpinBox::paintFusion ( QPainter &  painter)
protectedinherited

◆ paintPlastique()

void Digikam::DAbstractSliderSpinBox::paintPlastique ( QPainter &  painter)
protectedinherited

◆ progressBarOptions()

◆ progressRect()

◆ setBlockUpdateSignalOnDrag()

void Digikam::DAbstractSliderSpinBox::setBlockUpdateSignalOnDrag ( bool  block)
inherited

If set to block, it informs inheriting classes that they shouldn't emit signals if the update comes from a mouse dragging the slider. Set this to true when dragging the slider and updates during the drag are not needed.

◆ setExponentRatio()

void Digikam::DAbstractSliderSpinBox::setExponentRatio ( double  dbl)
inherited

◆ setFastSliderStep()

void Digikam::DDoubleSliderSpinBox::setFastSliderStep ( double  step)

◆ setInternalValue()

void Digikam::DDoubleSliderSpinBox::setInternalValue ( int  value,
bool  blockUpdateSignal 
)
overrideprotectedvirtual

Sets the slider internal value. Inheriting classes should respect blockUpdateSignal so that, in specific cases, we have a performance improvement. See setIgnoreMouseMoveEvents.

Implements Digikam::DAbstractSliderSpinBox.

References value(), and valueChanged().

Referenced by setValue().

◆ setMaximum()

void Digikam::DDoubleSliderSpinBox::setMaximum ( double  maximum)

References maximum(), and setRange().

◆ setMinimum()

void Digikam::DDoubleSliderSpinBox::setMinimum ( double  minimum)

References minimum(), and setRange().

◆ setPrefix()

void Digikam::DAbstractSliderSpinBox::setPrefix ( const QString &  prefix)
inherited

References prefix.

◆ setRange()

void Digikam::DDoubleSliderSpinBox::setRange ( double  minimum,
double  maximum,
int  decimals = 0 
)

References maximum(), minimum(), setValue(), and value().

Referenced by setMaximum(), and setMinimum().

◆ setSingleStep()

void Digikam::DDoubleSliderSpinBox::setSingleStep ( double  value)

References value().

◆ setSuffix()

void Digikam::DAbstractSliderSpinBox::setSuffix ( const QString &  suffix)
inherited

References suffix.

◆ setValue

void Digikam::DDoubleSliderSpinBox::setValue ( double  value)
slot

References setInternalValue(), and value().

Referenced by setRange().

◆ showEdit()

◆ sizeHint()

QSize Digikam::DAbstractSliderSpinBox::sizeHint ( void  ) const
overrideinherited

◆ spinBoxOptions()

◆ upButtonRect()

QRect Digikam::DAbstractSliderSpinBox::upButtonRect ( const QStyleOptionSpinBox &  spinBoxOptions) const
protectedinherited

◆ value()

double Digikam::DDoubleSliderSpinBox::value ( )

◆ valueChanged

void Digikam::DDoubleSliderSpinBox::valueChanged ( double  value)
signal

◆ valueForX()

int Digikam::DAbstractSliderSpinBox::valueForX ( int  x,
Qt::KeyboardModifiers  modifiers = Qt::NoModifier 
) const
protectedinherited

◆ valueString()

QString Digikam::DDoubleSliderSpinBox::valueString ( ) const
overrideprotectedvirtual

◆ wheelEvent()

void Digikam::DAbstractSliderSpinBox::wheelEvent ( QWheelEvent *  e)
overrideprotectedinherited

Member Data Documentation

◆ d_ptr

DAbstractSliderSpinBoxPrivate* const Digikam::DAbstractSliderSpinBox::d_ptr
protectedinherited

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