libkdepim Library API Documentation

KPrefsWidColor Class Reference

Widgets for color settings in KPrefsDialog. More...

#include <kprefsdialog.h>

Inheritance diagram for KPrefsWidColor:

Inheritance graph
[legend]
Collaboration diagram for KPrefsWidColor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KPrefsWidColor (KConfigSkeleton::ItemColor *item, QWidget *parent)
 ~KPrefsWidColor ()
QLabellabel ()
KColorButton * button ()
void readConfig ()
void writeConfig ()

Detailed Description

Widgets for color settings in KPrefsDialog.

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

Definition at line 194 of file kprefsdialog.h.


Constructor & Destructor Documentation

KPrefsWidColor::KPrefsWidColor KConfigSkeleton::ItemColor *  item,
QWidget parent
 

Create a color value control element consisting of a test field and a button for opening a color dialog.

Parameters:
item The KConfigSkeletonItem representing the preferences entry.
parent Parent widget.

Definition at line 180 of file kprefsdialog.cpp.

References KPrefsWid::changed().

KPrefsWidColor::~KPrefsWidColor  ) 
 

Destruct color setting widget.

Definition at line 193 of file kprefsdialog.cpp.


Member Function Documentation

QLabel * KPrefsWidColor::label  ) 
 

Return QLabel for the button.

Definition at line 208 of file kprefsdialog.cpp.

KColorButton * KPrefsWidColor::button  ) 
 

Return button opening the color dialog.

Definition at line 213 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 198 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 203 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 libkdepim Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Dec 21 14:23:21 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003