digiKam
Digikam::DAbstractSliderSpinBox Class Referenceabstract
+ Inheritance diagram for Digikam::DAbstractSliderSpinBox:

Public Member Functions

void hideEdit ()
 
bool isDragging () const
 
virtual QSize minimumSize () const
 
QSize minimumSizeHint () const override
 
void setBlockUpdateSignalOnDrag (bool block)
 
void setExponentRatio (double dbl)
 
void setPrefix (const QString &prefix)
 
void setSuffix (const QString &suffix)
 
void showEdit ()
 
QSize sizeHint () const override
 
 ~DAbstractSliderSpinBox () override
 

Protected Slots

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

Protected Member Functions

void changeEvent (QEvent *e) override
 
 DAbstractSliderSpinBox (QWidget *const parent, DAbstractSliderSpinBoxPrivate *const q)
 
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
 
virtual void setInternalValue (int value, bool blockUpdateSignal)=0
 
QStyleOptionSpinBox spinBoxOptions () const
 
QRect upButtonRect (const QStyleOptionSpinBox &spinBoxOptions) const
 
int valueForX (int x, Qt::KeyboardModifiers modifiers=Qt::NoModifier) const
 
virtual QString valueString () const =0
 
void wheelEvent (QWheelEvent *e) override
 

Protected Attributes

DAbstractSliderSpinBoxPrivate *const d_ptr
 

Constructor & Destructor Documentation

◆ DAbstractSliderSpinBox()

Digikam::DAbstractSliderSpinBox::DAbstractSliderSpinBox ( QWidget *const  parent,
DAbstractSliderSpinBoxPrivate *const  q 
)
explicitprotected

◆ ~DAbstractSliderSpinBox()

Digikam::DAbstractSliderSpinBox::~DAbstractSliderSpinBox ( )
override

Member Function Documentation

◆ changeEvent()

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

Referenced by DAbstractSliderSpinBox().

◆ contextMenuEvent

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

◆ downButtonRect()

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

References spinBoxOptions().

Referenced by mousePressEvent(), and mouseReleaseEvent().

◆ editLostFocus

void Digikam::DAbstractSliderSpinBox::editLostFocus ( )
protectedslot

References hideEdit(), and setInternalValue().

Referenced by DAbstractSliderSpinBox().

◆ eventFilter()

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

◆ focusInEvent()

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

References showEdit().

◆ hideEdit()

void Digikam::DAbstractSliderSpinBox::hideEdit ( )

Referenced by editLostFocus(), and eventFilter().

◆ isDragging()

bool Digikam::DAbstractSliderSpinBox::isDragging ( ) const

◆ keyPressEvent()

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

◆ minimumSize()

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

References minimumSizeHint().

◆ minimumSizeHint()

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

References sizeHint().

Referenced by minimumSize().

◆ mouseMoveEvent()

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

References setInternalValue(), and valueForX().

◆ mousePressEvent()

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

◆ mouseReleaseEvent()

void Digikam::DAbstractSliderSpinBox::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected

◆ paint()

void Digikam::DAbstractSliderSpinBox::paint ( QPainter &  painter)
protected

◆ paintBreeze()

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

References progressBarOptions(), and spinBoxOptions().

Referenced by paintEvent().

◆ paintEvent()

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

◆ paintFusion()

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

References progressBarOptions(), and spinBoxOptions().

Referenced by paintEvent().

◆ paintPlastique()

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

References progressBarOptions(), and spinBoxOptions().

Referenced by paintEvent().

◆ progressBarOptions()

QStyleOptionProgressBar Digikam::DAbstractSliderSpinBox::progressBarOptions ( ) const
protected

◆ progressRect()

QRect Digikam::DAbstractSliderSpinBox::progressRect ( const QStyleOptionSpinBox &  spinBoxOptions) const
protected

◆ setBlockUpdateSignalOnDrag()

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

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)

Referenced by DAbstractSliderSpinBox().

◆ setInternalValue()

virtual void Digikam::DAbstractSliderSpinBox::setInternalValue ( int  value,
bool  blockUpdateSignal 
)
protectedpure virtual

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

Implemented in Digikam::DDoubleSliderSpinBox, and Digikam::DSliderSpinBox.

Referenced by editLostFocus(), eventFilter(), keyPressEvent(), mouseMoveEvent(), mouseReleaseEvent(), and wheelEvent().

◆ setPrefix()

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

References prefix.

◆ setSuffix()

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

References suffix.

◆ showEdit()

void Digikam::DAbstractSliderSpinBox::showEdit ( )

◆ sizeHint()

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

References spinBoxOptions().

Referenced by minimumSizeHint().

◆ spinBoxOptions()

QStyleOptionSpinBox Digikam::DAbstractSliderSpinBox::spinBoxOptions ( ) const
protected

◆ upButtonRect()

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

References spinBoxOptions().

Referenced by mousePressEvent(), and mouseReleaseEvent().

◆ valueForX()

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

◆ valueString()

virtual QString Digikam::DAbstractSliderSpinBox::valueString ( ) const
protectedpure virtual

◆ wheelEvent()

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

References setInternalValue().

Member Data Documentation

◆ d_ptr

DAbstractSliderSpinBoxPrivate* const Digikam::DAbstractSliderSpinBox::d_ptr
protected

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