libkdepim

KPrefsWidDuration Class Reference

#include <kprefsdialog.h>

Inheritance diagram for KPrefsWidDuration:

KPrefsWid List of all members.

Detailed Description

Widgets for duration settings in KPrefsDialog.

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

Definition at line 202 of file kprefsdialog.h.


Public Member Functions

 KPrefsWidDuration (KConfigSkeleton::ItemDateTime *item, QWidget *parent)
QLabel * label ()
QTimeEdit * timeEdit ()
void readConfig ()
void writeConfig ()

Constructor & Destructor Documentation

KPrefsWidDuration::KPrefsWidDuration ( KConfigSkeleton::ItemDateTime *  item,
QWidget *  parent 
)

Create a duration value control element consisting of a label and a spinbox.

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

Definition at line 322 of file kprefsdialog.cpp.


Member Function Documentation

QLabel * KPrefsWidDuration::label (  ) 

Return QLabel used by this widget.

Definition at line 352 of file kprefsdialog.cpp.

QTimeEdit * KPrefsWidDuration::timeEdit (  ) 

Return QSpinBox used by this widget.

Definition at line 357 of file kprefsdialog.cpp.

void KPrefsWidDuration::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 340 of file kprefsdialog.cpp.

void KPrefsWidDuration::writeConfig (  )  [virtual]

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

Implements KPrefsWid.

Definition at line 345 of file kprefsdialog.cpp.


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