class KNumInput


Contains pure virtuals
Definition#include <knuminput.h>
InheritsQWidget
Annotated List
Files
Globals
Hierarchy
Index
Main

Public Methods

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

KNumInput ()

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

[virtual]

Set the text and alignment of the main description label.

The vertical alignment flags have special meaning with this widget:

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

void  setSteps (int minor, int major)

Set the spacing of tickmarks for the slider.

Parameters:
minorMinor tickmark separation.
majorMajor tickmark separation.

QSizePolicy  sizePolicy ()

[const]

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

QSize  sizeHint ()

[const virtual]

Return a size which fits the contents of the control.

Returns: the preferred size necessary to show the control

protected: /** * Call this function whenever you change something in the geometry * of your @ref KNumInput child. * */ void  layout (bool deep)

void  doLayout ()

[pure virtual]

You need to overwrite this method and implement yourlayout calculations there.

See KIntNumInput / KDoubleNumInput implementation for details.

KNumInput* m_prev

KNumInput* m_next

int m_colw1

int m_colw2

QSize m_sizeSlider

QSize m_sizeLabel

private: void  init ()