|
void | editorTextChanged (const QString &text) |
|
void | onValueChanged () |
|
void | onValueProxyAboutToBeModified () |
|
void | onValueProxyModified () |
|
|
| DoubleSpinBoxPrivate (DoubleSpinBox &object) |
|
void | init () |
|
bool | compare (double x1, double x2) const |
| Compare two double previously rounded according to the number of decimals.
|
|
double | round (double value, int decimals) const |
| Return a value rounded with the number of decimals.
|
|
QString | stripped (const QString &text, int *pos) const |
| Remove prefix and suffix.
|
|
int | boundDecimals (int decimals) const |
|
int | decimalsForValue (double value) const |
|
void | setDecimals (int dec) |
|
void | setValue (double value, int dec=-1) |
|
double | validateAndInterpret (QString &input, int &pos, QValidator::State &state, int &decimals) const |
|
void | connectSpinBoxValueChanged () |
|
void | disconnectSpinBoxValueChanged () |
|
|
itomQDoubleSpinBox * | SpinBox |
|
DoubleSpinBox::SetMode | Mode |
|
int | DefaultDecimals |
|
DoubleSpinBox::DecimalsOptions | DOption |
|
bool | InvertedControls |
|
DoubleSpinBox::SizeHintPolicy | SizeHintPolicy |
|
double | InputValue |
|
double | InputRange [2] |
|
QString | CachedText |
|
double | CachedValue |
|
QValidator::State | CachedState |
|
int | CachedDecimals |
|
QSize | CachedSizeHint |
|
QSize | CachedMinimumSizeHint |
|
bool | ForceInputValueUpdate |
|
QPointer< ValueProxy > | Proxy |
|
◆ boundDecimals()
int DoubleSpinBoxPrivate::boundDecimals |
( |
int | decimals | ) |
const |
Return the number of decimals bounded by the allowed min and max number of decimals. If -1, returns the current number of decimals.
◆ decimalsForValue()
int DoubleSpinBoxPrivate::decimalsForValue |
( |
double | value | ) |
const |
Return the number of decimals to use to display the value. Note that if DecimalsByValue is not set, the number of decimals to use is DefaultDecimals.
◆ setDecimals()
void DoubleSpinBoxPrivate::setDecimals |
( |
int | dec | ) |
|
Set the number of decimals of the spinbox and emit the signal No check if they are the same.
◆ setValue()
void DoubleSpinBoxPrivate::setValue |
( |
double | value, |
|
|
int | dec = -1 ) |
Set value with a specific number of decimals. -1 means the number of decimals stays the same.
◆ validateAndInterpret()
double DoubleSpinBoxPrivate::validateAndInterpret |
( |
QString & | input, |
|
|
int & | pos, |
|
|
QValidator::State & | state, |
|
|
int & | decimals ) const |
Ensure the spinbox text is meaningful. It is called multiple times when the spinbox line edit is modified, therefore values are cached.
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/itomWidgets/doubleSpinBox_p.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/itomWidgets/doubleSpinBox.cpp