KPropCombo Class Reference

[kpropdlg Index] [kpropdlg Hierarchy] [Headers]


This class provides a label with a combo box More...

#include <../kpropcombo.h>

Inherits: QLabel

Public Members

Public Slots

Protected Members


Detailed Description

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


KPropCombo( 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 combo.

~KPropCombo() [public virtual]

Destructor. Deletes the combo.

QComboBox* getCombo() [public]

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

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

Set the contents of the line edit widget.If no arguments are given, defaults to empty text.

const char* getContents() [public]

Returns the current contents of the combo.

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

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