KDECore
KConfigSkeleton::ItemInt Class Reference
Class for handling an integer preferences item. More...
#include <kconfigskeleton.h>
Public Member Functions | |
ItemInt (const QString &group, const QString &key, int &reference, int defaultValue=0) | |
QVariant | maxValue () const |
QVariant | minValue () const |
QVariant | property () const |
void | readConfig (KConfig *config) |
void | setMaxValue (int) |
void | setMinValue (int) |
void | setProperty (const QVariant &p) |
Detailed Description
Class for handling an integer preferences item.Definition at line 447 of file kconfigskeleton.h.
Constructor & Destructor Documentation
KConfigSkeleton::ItemInt::ItemInt | ( | const QString & | group, | |
const QString & | key, | |||
int & | reference, | |||
int | defaultValue = 0 | |||
) |
Definition at line 168 of file kconfigskeleton.cpp.
Member Function Documentation
QVariant KConfigSkeleton::ItemInt::maxValue | ( | ) | const [virtual] |
Return maximum value of item or invalid if not specified.
Reimplemented from KConfigSkeletonItem.
Definition at line 205 of file kconfigskeleton.cpp.
QVariant KConfigSkeleton::ItemInt::minValue | ( | ) | const [virtual] |
Return minimum value of item or invalid if not specified.
Reimplemented from KConfigSkeletonItem.
Definition at line 198 of file kconfigskeleton.cpp.
QVariant KConfigSkeleton::ItemInt::property | ( | ) | const [virtual] |
Return item as property.
Implements KConfigSkeletonItem.
Definition at line 193 of file kconfigskeleton.cpp.
void KConfigSkeleton::ItemInt::readConfig | ( | KConfig * | ) | [virtual] |
This function is called by KConfigSkeleton to read the value for this setting from a config file.
value.
Implements KConfigSkeletonItem.
Reimplemented in KConfigSkeleton::ItemEnum.
Definition at line 175 of file kconfigskeleton.cpp.
void KConfigSkeleton::ItemInt::setMaxValue | ( | int | v | ) |
Definition at line 218 of file kconfigskeleton.cpp.
void KConfigSkeleton::ItemInt::setMinValue | ( | int | v | ) |
Definition at line 212 of file kconfigskeleton.cpp.
void KConfigSkeleton::ItemInt::setProperty | ( | const QVariant & | p | ) | [virtual] |
The documentation for this class was generated from the following files: