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

Public Slots

void setValue (int value)
 Set the value, don't use setValue() More...
 

Signals

void valueChanged (int value)
 

Public Member Functions

 DSliderSpinBox (QWidget *const parent=nullptr)
 
int fastSliderStep () const
 
void hideEdit ()
 
bool isDragging () const
 
int maximum () const
 
int minimum () const
 
virtual QSize minimumSize () const
 
QSize minimumSizeHint () const override
 
void setBlockUpdateSignalOnDrag (bool block)
 
void setExponentRatio (double dbl)
 
void setFastSliderStep (int step)
 
void setMaximum (int maximum)
 
void setMinimum (int minimum)
 
void setPageStep (int value)
 
void setPrefix (const QString &prefix)
 
void setRange (int minimum, int maximum)
 
void setSingleStep (int value)
 
void setSuffix (const QString &suffix)
 
void showEdit ()
 
QSize sizeHint () const override
 
int value ()
 Get the value, don't use value() More...
 
 ~DSliderSpinBox () 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
 

Properties

int maximum
 
int minimum
 

Constructor & Destructor Documentation

◆ DSliderSpinBox()

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

References setRange().

◆ ~DSliderSpinBox()

Digikam::DSliderSpinBox::~DSliderSpinBox ( )
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()

int Digikam::DSliderSpinBox::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()

int Digikam::DSliderSpinBox::maximum ( ) const

◆ minimum()

int Digikam::DSliderSpinBox::minimum ( ) const

◆ 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::DSliderSpinBox::setFastSliderStep ( int  step)

◆ setInternalValue()

void Digikam::DSliderSpinBox::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::DSliderSpinBox::setMaximum ( int  maximum)

References maximum, and setRange().

◆ setMinimum()

void Digikam::DSliderSpinBox::setMinimum ( int  minimum)

References minimum, and setRange().

◆ setPageStep()

void Digikam::DSliderSpinBox::setPageStep ( int  value)

References value().

◆ setPrefix()

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

References prefix.

◆ setRange()

void Digikam::DSliderSpinBox::setRange ( int  minimum,
int  maximum 
)

References maximum, and minimum.

Referenced by DSliderSpinBox(), setMaximum(), and setMinimum().

◆ setSingleStep()

void Digikam::DSliderSpinBox::setSingleStep ( int  value)

References value().

◆ setSuffix()

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

References suffix.

◆ setValue

void Digikam::DSliderSpinBox::setValue ( int  value)
slot

Set the value, don't use setValue()

References setInternalValue(), and value().

◆ showEdit()

◆ sizeHint()

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

◆ spinBoxOptions()

◆ upButtonRect()

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

◆ value()

int Digikam::DSliderSpinBox::value ( )

Get the value, don't use value()

Referenced by setInternalValue(), setPageStep(), setSingleStep(), and setValue().

◆ valueChanged

void Digikam::DSliderSpinBox::valueChanged ( int  value)
signal

◆ valueForX()

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

◆ valueString()

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

◆ wheelEvent()

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

Member Data Documentation

◆ d_ptr

DAbstractSliderSpinBoxPrivate* const Digikam::DAbstractSliderSpinBox::d_ptr
protectedinherited

Property Documentation

◆ maximum

int Digikam::DSliderSpinBox::maximum
readwrite

Referenced by setMaximum(), and setRange().

◆ minimum

int Digikam::DSliderSpinBox::minimum
readwrite

Referenced by setMinimum(), and setRange().


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