A QDoubleSpinBox allowing to customize numbers display with respect to.
More...
#include <DoubleSpinBox.h>
A QDoubleSpinBox allowing to customize numbers display with respect to.
It allows the user to specify a custom display format.
Definition at line 31 of file DoubleSpinBox.h.
◆ DoubleSpinBox()
| DoubleSpinBox::DoubleSpinBox |
( |
const char |
format = 'g', |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
Constructor.
- Parameters
-
| format | format used to display numbers: has the same meaning as in QLocale::toString ( double i, char f = 'g', int prec = 6 ) |
| parent | parent widget (only affects placement of the dialog) |
◆ activated
Signal emitted when the spin box gains focus.
◆ addSpecialTextMapping()
| void DoubleSpinBox::addSpecialTextMapping |
( |
const QString & |
text, |
|
|
double |
value |
|
) |
| |
◆ decimals()
| int DoubleSpinBox::decimals |
( |
| ) |
|
|
inline |
◆ focusInEvent()
| void DoubleSpinBox::focusInEvent |
( |
QFocusEvent * |
| ) |
|
|
overrideprotected |
◆ getMaximum()
| double DoubleSpinBox::getMaximum |
( |
| ) |
|
◆ getMinimum()
| double DoubleSpinBox::getMinimum |
( |
| ) |
|
◆ interpretText
| void DoubleSpinBox::interpretText |
( |
bool |
notify = true | ) |
|
|
privateslot |
◆ setDecimals()
| void DoubleSpinBox::setDecimals |
( |
int |
prec | ) |
|
|
inline |
◆ setFormat()
| void DoubleSpinBox::setFormat |
( |
const char |
format, |
|
|
int |
prec = 1 |
|
) |
| |
|
inline |
◆ setMaximum()
| void DoubleSpinBox::setMaximum |
( |
double |
max | ) |
|
◆ setMinimum()
| void DoubleSpinBox::setMinimum |
( |
double |
min | ) |
|
◆ setRange()
| void DoubleSpinBox::setRange |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
◆ setSingleStep()
| void DoubleSpinBox::setSingleStep |
( |
double |
val | ) |
|
◆ setValue()
| bool DoubleSpinBox::setValue |
( |
double |
val | ) |
|
◆ stepBy()
| void DoubleSpinBox::stepBy |
( |
int |
steps | ) |
|
|
overrideprotected |
◆ stepEnabled()
| StepEnabled DoubleSpinBox::stepEnabled |
( |
| ) |
const |
|
overrideprotected |
◆ textFromValue()
| QString DoubleSpinBox::textFromValue |
( |
double |
value | ) |
const |
◆ validate()
| QValidator::State DoubleSpinBox::validate |
( |
QString & |
input, |
|
|
int & |
pos |
|
) |
| const |
|
override |
◆ value()
| double DoubleSpinBox::value |
( |
| ) |
|
◆ valueChanged
| void DoubleSpinBox::valueChanged |
( |
double |
d | ) |
|
|
signal |
◆ d_format
| char DoubleSpinBox::d_format |
|
private |
◆ d_max_val
| double DoubleSpinBox::d_max_val |
|
private |
◆ d_min_val
| double DoubleSpinBox::d_min_val |
|
private |
◆ d_prec
| int DoubleSpinBox::d_prec |
|
private |
◆ d_step
| double DoubleSpinBox::d_step |
|
private |
◆ d_value
| double DoubleSpinBox::d_value |
|
private |
◆ m_specialTextMappings
| std::map<QString, double> DoubleSpinBox::m_specialTextMappings |
|
private |
The documentation for this class was generated from the following file: