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

Public Member Functions

 CustomStepsDoubleSpinBox (QWidget *const parent=nullptr)
 
void reset ()
 
void setInvertStepping (bool invert)
 
void setSingleSteps (double smaller, double larger)
 
void setSuggestedInitialValue (double initialValue)
 
void setSuggestedValues (const QList< double > &values)
 
void stepBy (int steps) override
 
 ~CustomStepsDoubleSpinBox () override
 

Constructor & Destructor Documentation

◆ CustomStepsDoubleSpinBox()

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

This is a normal QDoubleSpinBox which allows to customize the stepping behavior, for cases where linear steps are not applicable

◆ ~CustomStepsDoubleSpinBox()

Digikam::CustomStepsDoubleSpinBox::~CustomStepsDoubleSpinBox ( )
override

Member Function Documentation

◆ reset()

void Digikam::CustomStepsDoubleSpinBox::reset ( )

Resets to minimum value.

Referenced by Digikam::SearchFieldRangeDouble::reset().

◆ setInvertStepping()

void Digikam::CustomStepsDoubleSpinBox::setInvertStepping ( bool  invert)

◆ setSingleSteps()

void Digikam::CustomStepsDoubleSpinBox::setSingleSteps ( double  smaller,
double  larger 
)

Allows to set to different default single steps, for the range below m_values, the other for above.

Referenced by Digikam::SearchFieldRangeDouble::setSingleSteps().

◆ setSuggestedInitialValue()

void Digikam::CustomStepsDoubleSpinBox::setSuggestedInitialValue ( double  initialValue)

Sets the value that should be set as first value when first moving away from the minimum value.

Referenced by Digikam::SearchFieldRangeDouble::setSuggestedInitialValue().

◆ setSuggestedValues()

void Digikam::CustomStepsDoubleSpinBox::setSuggestedValues ( const QList< double > &  values)

Set a list of values that are usually applicable for the type of data of the combo box. The user can still type in any other value. Boundaries are not touched. Up or below the min and max values of the list given, default stepping is used.

Referenced by Digikam::SearchFieldRangeDouble::setSuggestedValues().

◆ stepBy()

void Digikam::CustomStepsDoubleSpinBox::stepBy ( int  steps)
override

References value.


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