VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Friends
makVrv::DtThreeDigitSpinBox Class Reference

A Spin Box widget that left-pads its integer value with zeros to ensure the value is displayed with at least 3 digits. More...

Inheritance diagram for makVrv::DtThreeDigitSpinBox:
Inheritance graph
[legend]

Public Member Functions

 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...
 

Friends

class DtThreeDigitSpinBoxCreator
 

Detailed Description

A Spin Box widget that left-pads its integer value with zeros to ensure the value is displayed with at least 3 digits.

Constructor & Destructor Documentation

makVrv::DtThreeDigitSpinBox::DtThreeDigitSpinBox ( QWidget *  parent = 0)

Member Function Documentation

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.

Friends And Related Function Documentation

friend class DtThreeDigitSpinBoxCreator
friend

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)