libkdepim Library API Documentation

KPrefsWidColor Class Reference

Widget for color settings in KPrefsDialog. More...

#include <kprefsdialog.h>

Inheritance diagram for KPrefsWidColor:

QObject KPrefsWid List of all members.

Public Member Functions

 KPrefsWidColor (const QString &text, QColor *reference, QWidget *parent)
 Create a color widget consisting of a test field and a button for opening a color dialog.

 ~KPrefsWidColor ()
 Destruct color setting widget.

QLabellabel ()
 Return QLabel for the button.

KColorButton * button ()
 Return button opening the color 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.


Detailed Description

Widget for color settings in KPrefsDialog.

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

Definition at line 139 of file kprefsdialog.h.


Constructor & Destructor Documentation

KPrefsWidColor::KPrefsWidColor const QString text,
QColor reference,
QWidget parent
 

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

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

Definition at line 83 of file kprefsdialog.cpp.

KPrefsWidColor::~KPrefsWidColor  ) 
 

Destruct color setting widget.

Definition at line 92 of file kprefsdialog.cpp.


Member Function Documentation

QLabel * KPrefsWidColor::label  ) 
 

Return QLabel for the button.

Definition at line 107 of file kprefsdialog.cpp.

KColorButton * KPrefsWidColor::button  ) 
 

Return button opening the color dialog.

Definition at line 112 of file kprefsdialog.cpp.

void KPrefsWidColor::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 97 of file kprefsdialog.cpp.

void KPrefsWidColor::writeConfig  )  [virtual]
 

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

Implements KPrefsWid.

Definition at line 102 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.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:00 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001