libkdepim Library API Documentation

KPrefsWidString Class Reference

Widget for string settings in KPrefsDialog. More...

#include <kprefsdialog.h>

Inheritance diagram for KPrefsWidString:

KPrefsWid List of all members.

Public Member Functions

 KPrefsWidString (const QString &text, QString *reference, QWidget *parent, QLineEdit::EchoMode echomode=QLineEdit::Normal)
 Create a string widget consisting of a test label and a line edit.

virtual ~KPrefsWidString ()
 Destructor.

QLabellabel ()
 Return label used by this widget.

QLineEditlineEdit ()
 Return QLineEdit 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 string settings in KPrefsDialog.

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

Definition at line 280 of file kprefsdialog.h.


Constructor & Destructor Documentation

KPrefsWidString::KPrefsWidString const QString text,
QString reference,
QWidget parent,
QLineEdit::EchoMode  echomode = QLineEdit::Normal
 

Create a string widget consisting of a test label and a line edit.

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

Definition at line 234 of file kprefsdialog.cpp.

References QLineEdit::setEchoMode().

KPrefsWidString::~KPrefsWidString  )  [virtual]
 

Destructor.

Definition at line 244 of file kprefsdialog.cpp.


Member Function Documentation

QLabel * KPrefsWidString::label  ) 
 

Return label used by this widget.

Definition at line 258 of file kprefsdialog.cpp.

QLineEdit * KPrefsWidString::lineEdit  ) 
 

Return QLineEdit used by this widget.

Definition at line 263 of file kprefsdialog.cpp.

void KPrefsWidString::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 248 of file kprefsdialog.cpp.

References QLineEdit::setText().

void KPrefsWidString::writeConfig  )  [virtual]
 

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

Implements KPrefsWid.

Definition at line 253 of file kprefsdialog.cpp.

References QLineEdit::text().


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