KConfigSkeletonGenericItem Class
template <typename T> class KConfigSkeletonGenericItemBase class for storing a preferences setting of type T. More...
Header: | #include <KCoreConfigSkeleton> |
CMake: | find_package(KF6 REQUIRED COMPONENTS Config) target_link_libraries(mytarget PRIVATE KF6::ConfigCore) |
Inherits: | KConfigSkeletonItem |
Inherited By: | KCoreConfigSkeleton::ItemBool, KCoreConfigSkeleton::ItemDateTime, KCoreConfigSkeleton::ItemDouble, KCoreConfigSkeleton::ItemInt, KCoreConfigSkeleton::ItemIntList, KCoreConfigSkeleton::ItemLongLong, KCoreConfigSkeleton::ItemPoint, KCoreConfigSkeleton::ItemPointF, KCoreConfigSkeleton::ItemProperty, KCoreConfigSkeleton::ItemRect, KCoreConfigSkeleton::ItemRectF, KCoreConfigSkeleton::ItemSize, KCoreConfigSkeleton::ItemSizeF, KCoreConfigSkeleton::ItemString, KCoreConfigSkeleton::ItemStringList, KCoreConfigSkeleton::ItemUInt, KCoreConfigSkeleton::ItemULongLong, KCoreConfigSkeleton::ItemUrl, and KCoreConfigSkeleton::ItemUrlList |
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.