

Definition at line 300 of file osblineedits.h.
| OSB_GUI::LeDecimal::LeDecimal | ( | QWidget * | parent, | |
| const char * | name = "leDecimal_" | |||
| ) |
Constructor with QT arguments.
| void OSB_GUI::LeDecimal::fixDecimals | ( | ) | [private, slot] |
Formats the input text according to number of decimal digits.
| bool OSB_GUI::LeDecimal::positive | ( | ) | const |
Positive values only?
| int OSB_GUI::LeDecimal::precision | ( | ) | const |
Get the number of decimal digits.
| void OSB_GUI::LeDecimal::setPositive | ( | bool | posOnly | ) |
Set for positive numbers only.
| posOnly | Set true if only positive number are allowed. |
| int OSB_GUI::LeDecimal::setPrecision | ( | int | p | ) |
Set the number of decimal digits.
| p | Number of decimal digits, it is limited to OSB_LIB::Decimal::precision(). |
| void OSB_GUI::LeDecimal::setRegExp | ( | ) | [private] |
Build the validation REGEX.
| void OSB_GUI::LeDecimal::setup | ( | int | p, | |
| bool | posOnly | |||
| ) |
Set precision and positive only flag.
| p | Number of decimal digits, it is limited to OSB_LIB::Decimal::precision(). | |
| posOnly | Set true if only positive number are allowed. |
| void OSB_GUI::LeDecimal::setValue | ( | double | d | ) | [private] |
Set the value from a double.
| void OSB_GUI::LeDecimal::setValue | ( | const OSB_LIB::Decimal & | d | ) |
Set the value from a decimal.
| double OSB_GUI::LeDecimal::toDouble | ( | ) | const [private] |
Get the value as double.
| OSB_LIB::Decimal OSB_GUI::LeDecimal::value | ( | ) | const |
Get the value as decimal.
bool OSB_GUI::LeDecimal::positive_ [private] |
int OSB_GUI::LeDecimal::precision_ [private] |
QRegExpValidator* OSB_GUI::LeDecimal::validator_ [private] |
1.4.7