libkdepim Library API Documentation

KPrefsWidTime Class Reference

Widget for time settings in KPrefsDialog. More...

#include <kprefsdialog.h>

Inheritance diagram for KPrefsWidTime:

KPrefsWid List of all members.

Public Member Functions

 KPrefsWidTime (const QString &text, int *reference, QWidget *parent)
 Create a time widget consisting of a label and a spinbox.

QLabellabel ()
 Return QLabel used by this widget.

QSpinBoxspinBox ()
 Return QSpinBox used by this widget.

void readConfig ()
 This function is called to read value of the setting from the stored configuration and display it in the widget.

void writeConfig ()
 This function is called to write the current setting of the widget to the stored configuration.


Detailed Description

Widget for time settings in KPrefsDialog.

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

Definition at line 102 of file kprefsdialog.h.


Constructor & Destructor Documentation

KPrefsWidTime::KPrefsWidTime const QString text,
int *  reference,
QWidget parent
 

Create a time widget consisting of a label and a spinbox.

Parameters:
text Text of Label.
reference Pointer to variable read and written by this widget.
parent Parent widget.

Definition at line 170 of file kprefsdialog.cpp.

References QSpinBox::setSuffix().


Member Function Documentation

QLabel * KPrefsWidTime::label  ) 
 

Return QLabel used by this widget.

Definition at line 190 of file kprefsdialog.cpp.

QSpinBox * KPrefsWidTime::spinBox  ) 
 

Return QSpinBox used by this widget.

Definition at line 195 of file kprefsdialog.cpp.

void KPrefsWidTime::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 180 of file kprefsdialog.cpp.

References QSpinBox::setValue().

void KPrefsWidTime::writeConfig  )  [virtual]
 

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

Implements KPrefsWid.

Definition at line 185 of file kprefsdialog.cpp.

References QSpinBox::value().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:00 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001