KConfigSkeleton::ItemEnum Class Reference
Class for handling enums. More...
#include <kconfigskeleton.h>
Inheritance diagram for KConfigSkeleton::ItemEnum:

Public Member Functions | |
ItemEnum (const QString &group, const QString &key, int &reference, const QValueList< Choice > &choices, int defaultValue=0) | |
QValueList< Choice > | choices () const |
void | readConfig (KConfig *config) |
void | writeConfig (KConfig *config) |
Classes | |
struct | Choice |
Detailed Description
Class for handling enums.
Definition at line 498 of file kconfigskeleton.h.
Member Function Documentation
|
This function is called by KConfigSkeleton to read the value for this setting from a config file. value. Reimplemented from KConfigSkeleton::ItemInt. Definition at line 289 of file kconfigskeleton.cpp. References QValueList::begin(), QValueList::end(), KConfigBase::hasKey(), QString::lower(), KConfigSkeletonGenericItem< int >::mDefault, KConfigSkeletonItem::mGroup, KConfigSkeletonItem::mKey, KConfigSkeletonGenericItem< int >::mLoadedValue, KConfigSkeletonGenericItem< int >::mReference, KConfigBase::readEntry(), KConfigSkeletonItem::readImmutability(), KConfigBase::readNumEntry(), and KConfigBase::setGroup(). |
|
This function is called by KConfigSkeleton to write the value of this setting to a config file.
Reimplemented from KConfigSkeletonGenericItem< int >. Definition at line 318 of file kconfigskeleton.cpp. References QValueList::count(), KConfigBase::hasDefault(), KConfigSkeletonGenericItem< int >::mDefault, KConfigSkeletonItem::mGroup, KConfigSkeletonItem::mKey, KConfigSkeletonGenericItem< int >::mLoadedValue, KConfigSkeletonGenericItem< int >::mReference, KConfigSkeletonItem::name(), KConfigBase::revertToDefault(), KConfigBase::setGroup(), and KConfigBase::writeEntry(). |
The documentation for this class was generated from the following files: