class KNumInput

You need to inherit from this class if you want to implement K*NumInput for a different variable type More...

Contains pure virtuals
Definition#include <knuminput.h>
InheritsQWidget (kdecore)
Inherited byKDoubleNumInput, KIntNumInput
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Protected Members


Detailed Description

You need to inherit from this class if you want to implement K*NumInput for a different variable type

 KNumInput (QWidget* parent=0, const char* name=0)

default constructor

 KNumInput (KNumInput* below, QWidget* parent=0, const char* name=0)

Parameters:
belowa pointer to another KNumInput.

void  setLabel (QString label, int a = AlignLeft | AlignTop)

[virtual]

Sets the text and alignment of the main description label.

the vertical alignment flags have special meaning with this widget:

AlignTop the label is placed above the edit/slider AlignVCenter the label is placed left beside the edit AlignBottom the label is placed below the edit/slider

Parameters:
labelthe text of the label. Use QString::null to remove an existing one.
aone of AlignLeft, AlignHCenter, AlignRight and AlignTop, AlignVCenter, AlignBottom. default is AlignLeft | AlignTop.

void  setSteps (int minor, int major)

Sets the spacing of tickmarks for the slider.

Parameters:
minorminor tickmark separation
majormajor tickmark separation

QSizePolicy  sizePolicy ()

[const]

Specifies that this widget may stretch horizontally, but is fixed vertically (like QSpinBox itself)

QSize  sizeHint ()

[const virtual]

Returns a size which fits the contents of the control.

Returns: the preferred size necessary to show the control

void  layout (bool deep)

[protected]

call this function whenever you change something in the geometry of your KNumInput child

void  doLayout ()

[protected pure virtual]

You need to overwrite this method and implement your layout calculations there. See KIntNumInput/KDoubleNumInput implementation for details.


Generated by: root@porky.devel.redhat.com on Wed May 10 08:56:43 2000, using kdoc 2.0a35.