libkdepim

KPrefsWidCombo Class Reference

#include <kprefsdialog.h>

Inheritance diagram for KPrefsWidCombo:

KPrefsWid List of all members.

Detailed Description

Widgets for settings represented by a combo box in KPrefsDialog.

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

The setting is interpreted as an int value, corresponding to the index in the combo box.

Definition at line 425 of file kprefsdialog.h.


Public Member Functions

 KPrefsWidCombo (KConfigSkeleton::ItemEnum *item, QWidget *parent)
virtual ~KPrefsWidCombo ()
void readConfig ()
void writeConfig ()
QComboBox * comboBox ()
QValueList< QWidget * > widgets () const

Constructor & Destructor Documentation

KPrefsWidCombo::KPrefsWidCombo KConfigSkeleton::ItemEnum *  item,
QWidget *  parent
 

Create a control element for selection of an option.

It consists of a combo box.

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

Definition at line 442 of file kprefsdialog.cpp.


Member Function Documentation

void KPrefsWidCombo::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 456 of file kprefsdialog.cpp.

QValueList< QWidget * > KPrefsWidCombo::widgets  )  const [virtual]
 

Return a list of widgets used by this control element.

Reimplemented from KPrefsWid.

Definition at line 466 of file kprefsdialog.cpp.

void KPrefsWidCombo::writeConfig  )  [virtual]
 

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

Implements KPrefsWid.

Definition at line 461 of file kprefsdialog.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys