VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected 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.

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

Public Member Functions

 DtThreeDigitSpinBox (QWidget *parent=0)
 
virtual QString textFromValue (int value) const
 

Protected Member Functions

virtual void keyReleaseEvent (QKeyEvent *event)
 

Friends

class DtThreeDigitSpinBoxCreator
 

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.

virtual void makVrv::DtThreeDigitSpinBox::keyReleaseEvent ( QKeyEvent *  event)
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.

Friends And Related Function Documentation

friend class DtThreeDigitSpinBoxCreator
friend

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)