KPropSpin Class Reference

[kpropdlg Index] [kpropdlg Hierarchy] [Headers]


This class provides a label with a spinbox More...

#include <../kpropspin.h>

Inherits: QLabel

Public Members

Public Slots

Protected Members


Detailed Description

This class provides a label with a spinbox. You can get a pointer to the spinbox to configure it, and the widget wil resize on font change.


KPropSpin( QWidget *parent, const char *text, int perc, const char *key=0, const char *group=0, KConfig *config=0, const char *name=0 ) [public]

Constructor. 'text' contains the label text, 'perc' sets the percentage of space reserved for the spinbox.

~KPropSpin() [public virtual]

Destructor. Deletes the spinbox.

QSpinBox* getSpinBox() [public]

Returns a pointer to the spinbox so you can configure it.

void setContents( int value ) [public virtual]

Set the value of the spinbox. Reimplement if you want to handle other than numeric values.

void setContents( const char *s = 0 ) [public virtual]

Set the text contents of the spinbox. Used by getConfig()to set the value from the cofnig file.

const char* getContents() [public]

Returns the current contents of the spinbox. Usedby setConfig() to write to the config file.

void setGroup( const char *group ) [public]

set the group to modify

const char* getGroup() [public]

Returns the group to be modified

void setKey( const char * ) [public]

set the key to modify

const char* getKey() [public]

returns the Key to be modified

void setKConfig( KConfig * ) [public]

Set the KConfig object to operate upon.

KConfig* getKConfig() [public]

Returns the current KConfig object

void setConfig() [public slot virtual]

Write the config key value. .

void getConfig() [public slot virtual]

Read the config key value into the widget. .

void resizeEvent( QResizeEvent *rev ) [protected virtual]

Handles resizes for the spinbox.

void fontChange( const QFont &oldfont ) [protected virtual]

This method is called after a font change.It will call sizeUpdate() to resize the widget to contain the new font.

void sizeUpdate() [protected]

Sets the minimum size to fit the font.


Documentation generated by fester@cal040052 on Sat Oct 10 12:30:32 /etc/localtime 1998
Kdoc