![]() |
digiKam
|
#include <searchutilities.h>
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 | |
|
explicit |
This is a normal QDoubleSpinBox which allows to customize the stepping behavior, for cases where linear steps are not applicable
|
override |
void Digikam::CustomStepsDoubleSpinBox::reset | ( | ) |
Resets to minimum value.
Referenced by Digikam::SearchFieldRangeDouble::reset().
void Digikam::CustomStepsDoubleSpinBox::setInvertStepping | ( | bool | invert | ) |
Referenced by Digikam::SearchFieldRangeDouble::setInvertStepping().
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().
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().
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().
|
override |
References value.