A Spin Box widget that left-pads its integer value with zeros to ensure the value is displayed with at least 3 digits.
More...
|
| | DtThreeDigitSpinBox (QWidget *parent=0) |
| |
| virtual QString | textFromValue (int value) const |
| | Overridden to display an integer value using at least 3 digits If the value has more than 3 digits in it, it is not shortened to 3 digits. More...
|
| |
A Spin Box widget that left-pads its integer value with zeros to ensure the value is displayed with at least 3 digits.
| makVrv::DtThreeDigitSpinBox::DtThreeDigitSpinBox |
( |
QWidget * |
parent = 0 | ) |
|
| virtual QString makVrv::DtThreeDigitSpinBox::textFromValue |
( |
int |
value | ) |
const |
|
virtual |
Overridden to display an integer value using at least 3 digits If the value has more than 3 digits in it, it is not shortened to 3 digits.
If the value has less than 3 digits in it, it is left-padded with zeros to display a total of 3 digits. For usability reasons, the value is only left-padded with zeros if the widget does not have the user's focus, i.e. QWidget::hasFocus() is false.
The documentation for this class was generated from the following file: