libtdepim

KPrefsWidColor Class Reference

#include <kprefsdialog.h>

Inheritance diagram for KPrefsWidColor:
KPrefsWid

Public Member Functions

 KPrefsWidColor (TDEConfigSkeleton::ItemColor *item, TQWidget *parent)
 
 ~KPrefsWidColor ()
 
TQLabel * label ()
 
KColorButton * button ()
 
void readConfig ()
 
void writeConfig ()
 
- Public Member Functions inherited from KPrefsWid
virtual TQValueList< TQWidget * > widgets () const
 

Additional Inherited Members

- Signals inherited from KPrefsWid
void changed ()
 

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 279 of file kprefsdialog.h.

Constructor & Destructor Documentation

◆ KPrefsWidColor()

KPrefsWidColor::KPrefsWidColor ( TDEConfigSkeleton::ItemColor *  item,
TQWidget *  parent 
)

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

Parameters
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent widget.

Definition at line 185 of file kprefsdialog.cpp.

◆ ~KPrefsWidColor()

KPrefsWidColor::~KPrefsWidColor ( )

Destruct color setting widget.

Definition at line 199 of file kprefsdialog.cpp.

Member Function Documentation

◆ button()

KColorButton * KPrefsWidColor::button ( )

Return button opening the color dialog.

Definition at line 219 of file kprefsdialog.cpp.

◆ label()

TQLabel * KPrefsWidColor::label ( )

Return TQLabel for the button.

Definition at line 214 of file kprefsdialog.cpp.

◆ readConfig()

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 204 of file kprefsdialog.cpp.

◆ writeConfig()

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 209 of file kprefsdialog.cpp.


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