libkdepim Library API Documentation

KPrefsWidFont Class Reference

Widget for font settings in KPrefsDialog. More...

#include <kprefsdialog.h>

Inheritance diagram for KPrefsWidFont:

QObject KPrefsWid List of all members.

Public Member Functions

 KPrefsWidFont (const QString &sampleText, const QString &labelText, QFont *reference, QWidget *parent)
 Create a font widget consisting of a test field and a button for opening a font dialog.

 ~KPrefsWidFont ()
 Destruct font setting widget.

QLabellabel ()
 Return label.

QFramepreview ()
 Return QFrame used as preview field.

QPushButtonbutton ()
 Return button opening the font dialog.

void readConfig ()
 This function is called to read value of the setting from the stored configuration and display it in the widget.

void writeConfig ()
 This function is called to write the current setting of the widget to the stored configuration.


Protected Slots

void selectFont ()

Detailed Description

Widget for font settings in KPrefsDialog.

This class provides a widget for configuring font values. It is meant to be used by KPrefsDialog. The user is responsible for the layout management.

Definition at line 182 of file kprefsdialog.h.


Constructor & Destructor Documentation

KPrefsWidFont::KPrefsWidFont const QString sampleText,
const QString labelText,
QFont reference,
QWidget parent
 

Create a font widget consisting of a test field and a button for opening a font dialog.

Parameters:
label Text of label.
reference Pointer to variable read and written by this widget.
parent Parent widget.

Definition at line 117 of file kprefsdialog.cpp.

References QObject::connect().

KPrefsWidFont::~KPrefsWidFont  ) 
 

Destruct font setting widget.

Definition at line 131 of file kprefsdialog.cpp.


Member Function Documentation

QLabel * KPrefsWidFont::label  ) 
 

Return label.

Definition at line 145 of file kprefsdialog.cpp.

QFrame * KPrefsWidFont::preview  ) 
 

Return QFrame used as preview field.

Definition at line 150 of file kprefsdialog.cpp.

QPushButton * KPrefsWidFont::button  ) 
 

Return button opening the font dialog.

Definition at line 155 of file kprefsdialog.cpp.

void KPrefsWidFont::readConfig  )  [virtual]
 

This function is called to read value of the setting from the stored configuration and display it in the widget.

Implements KPrefsWid.

Definition at line 135 of file kprefsdialog.cpp.

References QLabel::setFont().

void KPrefsWidFont::writeConfig  )  [virtual]
 

This function is called to write the current setting of the widget to the stored configuration.

Implements KPrefsWid.

Definition at line 140 of file kprefsdialog.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:23 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001