KPropRadio Class Reference

[kpropdlg Index] [kpropdlg Hierarchy] [Headers]


This class provides a box with radio buttons More...

#include <../kpropradio.h>

Inherits: QButtonGroup

Public Members

Public Slots

Protected Members


Detailed Description

This class provides a box with radio buttons. You can add Radio buttons which will be aligned verticaly. From the box you can exclusively select 1 button. The number of the button can be read from getState().


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

Contructor of the box. The 'text' is the title of the box.

~KPropRadio() [public virtual]

Destructor. Deletes all the radiobuttons.

void setState( int button ) [public]

You can preset a radiobutton with this method. button is the number of the button

int getState() [public]

Returns the number of the selected button. Returns -1 if no button is selected.

void addRadio( const char *text, bool state ) [public]

Add a radio button to the box. 'text' is the text for the radio button. 'state' is the state of the button. If it's TRUE, the button is selected, and all other buttons are deselected.

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 a resize of the radio box.

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

If the font changes for this widget, this method is called.It will call sizeUpdate() to resize the widget.

void sizeUpdate() [protected]

This method will set the minimum size for the box and all contained widgets so that all buttons will fit.


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