class KIntegerLine

IntegerEditline: Editline for Integers. More...

Definition#include <kintegerline.h>
InheritsKRestrictedLine
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals

Protected Methods


Detailed Description

IntegerEditline: Editline for Integers. Only octal, decimal or hexadecimal characters are valid input characters for this sort of edit lines. A few special keys are supported by this class: <ul> <li>The up-arrow increments the contents by 1, <li>the down-arrow decrements the contents by 1, <li>Page-Up increments by 8, 10 or 16 (depending on the EditLineType), <li>Page-Down decrements by 8, 10 or 16 (depending on the EditLinetype) </ul>

 KIntegerLine ()

Default - empty - constructor

 KIntegerLine ( QWidget *parent=0, const char *name=0, KEditLineType t=KEditTypeDec)

Contructor: This constructor takes three - optional - arguments. The first two parameters are simply passed to KRestrictedLine.

Parameters:
parentpointer to the parent widget
namepointer to the name of this widget
ttype of this integer line (defaults to KEditTypeDec)

KIntegerLine ()

KEditLineType  getType ()

int  value ( void )

void  setValue ( int value )

void  valueChanged ( int )

[signal]

void  keyPressEvent ( QKeyEvent *e )

[protected]

Key press event handler. Handles the following special keys: <UL> <LI>Key_Up: Increments contents of line by 1 <LI>Key_Prior: Increments contents of line by 8, 10 or 16 <LI>Key_Down: Decrements contents of line by 1 <LI>Key_Next: Decrements contents of line by 8, 10 or 16 </UL>

Reimplemented from KRestrictedLine.