libkdepim Library API Documentation

KPrefsWidBool Class Reference

Widget for bool settings in KPrefsDialog. More...

#include <kprefsdialog.h>

Inheritance diagram for KPrefsWidBool:

KPrefsWid List of all members.

Public Member Functions

 KPrefsWidBool (const QString &text, bool *reference, QWidget *parent)
 Create a bool widget consisting of a QCheckbox.

QCheckBoxcheckBox ()
 Return the QCheckbox 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 bool settings in KPrefsDialog.

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

Definition at line 70 of file kprefsdialog.h.


Constructor & Destructor Documentation

KPrefsWidBool::KPrefsWidBool const QString text,
bool *  reference,
QWidget parent
 

Create a bool widget consisting of a QCheckbox.

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

Definition at line 59 of file kprefsdialog.cpp.


Member Function Documentation

QCheckBox * KPrefsWidBool::checkBox  ) 
 

Return the QCheckbox used by this widget.

Definition at line 77 of file kprefsdialog.cpp.

void KPrefsWidBool::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 67 of file kprefsdialog.cpp.

References QCheckBox::setChecked().

void KPrefsWidBool::writeConfig  )  [virtual]
 

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

Implements KPrefsWid.

Definition at line 72 of file kprefsdialog.cpp.

References QCheckBox::isChecked().


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.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:23 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001