KDECore
KCoreConfigSkeleton::ItemDouble Class Reference
#include <kcoreconfigskeleton.h>

Detailed Description
Class for handling a floating point preference item.Definition at line 709 of file kcoreconfigskeleton.h.
Public Member Functions | |
bool | isEqual (const QVariant &p) const |
ItemDouble (const QString &_group, const QString &_key, double &reference, double defaultValue=0) | |
QVariant | maxValue () const |
QVariant | minValue () const |
QVariant | property () const |
void | readConfig (KConfig *config) |
void | setMaxValue (double) |
void | setMinValue (double) |
void | setProperty (const QVariant &p) |
Constructor & Destructor Documentation
KCoreConfigSkeleton::ItemDouble::ItemDouble | ( | const QString & | _group, | |
const QString & | _key, | |||
double & | reference, | |||
double | defaultValue = 0 | |||
) |
Constructor.
- Parameters:
-
_group Config file group. _key Config file key.
- Parameters:
-
reference The initial value to hold in the item defaultValue The default value for the item
Definition at line 605 of file kcoreconfigskeleton.cpp.
Member Function Documentation
QVariant KCoreConfigSkeleton::ItemDouble::maxValue | ( | ) | const [virtual] |
Get the maximum value this is allowed to be stored in this item.
Reimplemented from KConfigSkeletonItem.
Definition at line 647 of file kcoreconfigskeleton.cpp.
QVariant KCoreConfigSkeleton::ItemDouble::minValue | ( | ) | const [virtual] |
Get the minimum value that is allowed to be stored in this item.
Reimplemented from KConfigSkeletonItem.
Definition at line 640 of file kcoreconfigskeleton.cpp.
QVariant KCoreConfigSkeleton::ItemDouble::property | ( | ) | const [virtual] |
Return item as property.
Implements KConfigSkeletonItem.
Definition at line 635 of file kcoreconfigskeleton.cpp.
void KCoreConfigSkeleton::ItemDouble::readConfig | ( | KConfig * | config | ) | [virtual] |
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file.
Implements KConfigSkeletonItem.
Definition at line 612 of file kcoreconfigskeleton.cpp.
void KCoreConfigSkeleton::ItemDouble::setMaxValue | ( | double | v | ) |
Set the maximum value for the item.
- See also:
- maxValue
Definition at line 660 of file kcoreconfigskeleton.cpp.
void KCoreConfigSkeleton::ItemDouble::setMinValue | ( | double | v | ) |
Set the minimum value for the item.
- See also:
- minValue()
Definition at line 654 of file kcoreconfigskeleton.cpp.
void KCoreConfigSkeleton::ItemDouble::setProperty | ( | const QVariant & | p | ) | [virtual] |
Set item to p
.
Implements KConfigSkeletonItem.
Definition at line 625 of file kcoreconfigskeleton.cpp.
The documentation for this class was generated from the following files: