KDE PIM / Developers / API Docs / libkdepim

KPrefsWidColor Class Reference

Widgets for color settings in KPrefsDialog. More...

#include <kprefsdialog.h>

Inherits KPrefsWid.

List of all members.

Public Member Functions


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.


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.

KPrefsWidColor::~KPrefsWidColor (   ) 
 

Destruct color setting widget.


Member Function Documentation

QLabel * KPrefsWidColor::label (   ) 
 

Return QLabel for the button.

KColorButton * KPrefsWidColor::button (   ) 
 

Return button opening the color dialog.

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.

void KPrefsWidColor::writeConfig (   )  [virtual]
 

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

Implements KPrefsWid.


The documentation for this class was generated from the following files: