![]() |
VR-Forces 5.0.1 Developer's Guide
|
A Spin Box widget that left-pads its integer value with zeros to ensure the value is displayed with at least 3 digits.

Public Member Functions | |
| DtThreeDigitSpinBox (QWidget *parent=0) | |
| virtual QString | textFromValue (int value) const |
Protected Member Functions | |
| virtual void | keyReleaseEvent (QKeyEvent *event) |
Friends | |
| class | DtThreeDigitSpinBoxCreator |
| makVrv::DtThreeDigitSpinBox::DtThreeDigitSpinBox | ( | QWidget * | parent = 0 | ) |
|
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.
|
protectedvirtual |
Override of the QWidget keyReleaseEvent method that is called when any key is released when inside the DtThreeDigitSpinBox widget. When the released key is the enter or return key, the focus is cleared from the DtThreeDigitSpinBox widget so that the textFromValue method correctly updates the spin box value.
|
friend |