KPropFont Class Reference

[kpropdlg Index] [kpropdlg Hierarchy] [Headers]


A font display with a font dialog popup button More...

#include <../kpropfont.h>

Inherits: QLabel

Public Members

Public Slots

Protected Members

Protected Slots


Detailed Description

A font display with a font dialog popup button. The widget is resized when the button font changes.


KPropFont( QWidget *parent, const char *testtext, const char *buttontext, 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 button, 'testtext' is the text in the label, 'buttontext' is the text on the button,

~KPropFont() [public virtual]

Destructor.

void setLabelFont( QFont font ) [public]

Set the font of the test label text.

QFont getLabelFont() [public]

Returns the font of the test label text.

void setConfig() [public slot virtual]

Write the config key value. .

void getConfig() [public slot virtual]

Read the config key value into the widget. .

void setGroup( const char *group ) [public slot]

set the group to modify

const char* getGroup() [public slot]

Returns the group to be modified

void setKey( const char * ) [public slot]

set the key to modify

const char* getKey() [public slot]

returns the Key to be modified

void setKConfig( KConfig * ) [public slot]

Set the KConfig object to operate upon.

KConfig* getKConfig() [public slot]

Returns the current KConfig object

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.

void getFontDialog() [protected slot]

popup the font dialog and put the font in the Label


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