The LengthEditBase class.
More...
#include <lengtheditbase.h>
◆ StepBehavior
Enumerator |
---|
PredefinedSteps | |
HalfAndDouble | |
◆ LengthEditBase() [1/3]
◆ LengthEditBase() [2/3]
◆ LengthEditBase() [3/3]
◆ ~LengthEditBase()
◆ getDisplayedUnit()
◆ setDefaultValueToolTip()
void setDefaultValueToolTip |
( |
const Length & |
value | ) |
|
|
noexcept |
◆ setDefaultUnit()
◆ setChangeUnitActionVisible()
void setChangeUnitActionVisible |
( |
bool |
visible | ) |
|
|
noexcept |
◆ setStepBehavior()
◆ setSteps()
Set the supported up/down step values.
The step with lowest priority (typically the smallest value) must be the first element in the list, the step with highest priority (typically the largest value) the last one.
Example: {0.1mm, 1.0mm} leads to the steps 0.0mm, 0.1mm, .. 0.9mm, 1.0mm, 2.0mm, ...
- Parameters
-
steps | List of supported step values |
◆ resetUnit()
◆ configureClientSettings()
void configureClientSettings |
( |
const QString & |
uniqueIdentifier | ) |
|
|
noexcept |
◆ configure()
void configure |
( |
const LengthUnit & |
defaultUnit, |
|
|
const QVector< PositiveLength > & |
steps, |
|
|
const QString & |
uniqueIdentifier |
|
) |
| |
|
noexcept |
◆ stepBy()
◆ minimumSizeHint()
QSize minimumSizeHint |
( |
| ) |
const |
|
override |
◆ sizeHint()
◆ operator=()
◆ displayedUnitChanged
void displayedUnitChanged |
( |
const LengthUnit & |
unit | ) |
|
|
signal |
◆ stepEnabled()
QAbstractSpinBox::StepEnabled stepEnabled |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ setValueImpl()
void setValueImpl |
( |
Length |
value | ) |
|
|
protectednoexcept |
◆ updateValueFromText()
void updateValueFromText |
( |
QString |
text | ) |
|
|
protectednoexcept |
◆ updateSingleStep()
void updateSingleStep |
( |
| ) |
|
|
protectednoexcept |
◆ updateSingleStepPredefined()
void updateSingleStepPredefined |
( |
| ) |
|
|
protectednoexcept |
◆ updateSingleStepHalfDouble()
void updateSingleStepHalfDouble |
( |
| ) |
|
|
protectednoexcept |
◆ updateText()
◆ extractUnitFromExpression()
LengthUnit extractUnitFromExpression |
( |
QString & |
expression | ) |
const |
|
protectednoexcept |
◆ changeUnitActionTriggered()
void changeUnitActionTriggered |
( |
| ) |
|
|
protectednoexcept |
◆ setSelectedUnit()
◆ saveSelectedUnit()
void saveSelectedUnit |
( |
| ) |
|
|
protectednoexcept |
◆ getValueStr()
QString getValueStr |
( |
const LengthUnit & |
unit | ) |
const |
|
protectednoexcept |
◆ valueChangedImpl()
virtual void valueChangedImpl |
( |
const Length & |
diff | ) |
|
|
protectedpure virtualnoexcept |
◆ mChangeUnitAction
QPointer<QAction> mChangeUnitAction |
|
protected |
◆ mDefaultUnit
◆ mSelectedUnit
◆ mMinimum
◆ mMaximum
◆ mValue
◆ mStepBehavior
◆ mSteps
◆ mSingleStepUp
Zero means "no step available".
◆ mSingleStepDown
Zero means "no step available".
◆ mAdditionalSize
◆ mSettingsKey
Empty means "do not save".
The documentation for this class was generated from the following files: