KConfigSkeletonGenericItem Class

template <typename T> class KConfigSkeletonGenericItem

Base class for storing a preferences setting of type T. More...

Public Functions

KConfigSkeletonGenericItem(const QString &_group, const QString &_key, T &reference, T defaultValue)
virtual void setDefaultValue(const T &v)
void setValue(const T &v)
T &value()
const T &value() const

Reimplemented Public Functions

virtual void setDefault() override

Detailed Description

Member Function Documentation

KConfigSkeletonGenericItem::KConfigSkeletonGenericItem(const QString &_group, const QString &_key, T &reference, T defaultValue)

reference The initial value to hold in the item defaultValue The default value for the item

[override virtual] void KConfigSkeletonGenericItem::setDefault()

Reimplements: KConfigSkeletonItem::setDefault().

Set the value for this item to the default value

[virtual] void KConfigSkeletonGenericItem::setDefaultValue(const T &v)

Set default value for this item.

void KConfigSkeletonGenericItem::setValue(const T &v)

Set value of this KConfigSkeletonItem.

See also value().

T &KConfigSkeletonGenericItem::value()

Return value of this KConfigSkeletonItem.

See also setValue().

const T &KConfigSkeletonGenericItem::value() const

Return const value of this KConfigSkeletonItem.