KPropText Class Reference

[kpropdlg Index] [kpropdlg Hierarchy] [Headers]


This class provides a label with a line edit More...

#include <../kproptext.h>

Inherits: QLabel

Public Members

Public Slots

Protected Members


Detailed Description

This class provides a label with a line edit. The widget is resized when the font changes.


KPropText( 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' is the text of the label.'perc' is the percentage of space reserved for the line edit widget.

~KPropText() [public virtual]

Destructor. deletes the line edit widget.

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 contents of the line edit widget.

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 resize events for the line edit widget.

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