digiKam Developer Documentation: Digikam::CustomStepsIntSpinBox Class Reference

| digiKam Developer Documentation Professional Photo Management with the Power of Open Source

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
Digikam::CustomStepsIntSpinBox Class Reference
Inheritance diagram for Digikam::CustomStepsIntSpinBox:

## Public Member Functions
| CustomStepsIntSpinBox (QWidget *const parent=nullptr)
| This is a normal QIntSpinBox which allows to customize the stepping behavior, for cases where linear steps are not applicable.
void | enableFractionMagic (const QString &prefix)
| Call this with a fraction prefix (like "1/") to enable magic handling of the value as fraction denominator.
double | fractionMagicValue () const
| value() and setValue() for fraction magic value.
void | reset ()
| Resets to minimum value.
void | setFractionMagicValue (double value)
void | setInvertStepping (bool invert)
void | setSingleSteps (int smaller, int larger)
| Allows to set to different default single steps, for the range below m_values, the other for above.
void | setSuggestedInitialValue (int initialValue)
| Sets the value that should be set as first value when first moving away from the minimum value.
void | setSuggestedValues (const QList< int > &values)
| Set a list of values that are usually applicable for the type of data of the combo box.
void | stepBy (int steps) override

## Protected Member Functions
StepEnabled | stepEnabled () const override
QString | textFromValue (int value) const override
int | valueFromText (const QString &text) const override

## Member Function Documentation

## ◆ setSuggestedValues()

void Digikam::CustomStepsIntSpinBox::setSuggestedValues | ( | const QList< int > & | values | ) |

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.