KConfig
kconfigskeleton.cpp
83KConfigSkeleton::ItemColor *KConfigSkeleton::addItemColor(const QString &name, QColor &reference, const QColor &defaultValue, const QString &key)
86 item = new KConfigSkeleton::ItemColor(d->mCurrentGroup, key.isNull() ? name : key, reference, defaultValue);
91KConfigSkeleton::ItemFont *KConfigSkeleton::addItemFont(const QString &name, QFont &reference, const QFont &defaultValue, const QString &key)
94 item = new KConfigSkeleton::ItemFont(d->mCurrentGroup, key.isNull() ? name : key, reference, defaultValue);
T readEntry(const QString &key, const T &aDefault) const
Reads the value of an entry specified by pKey in the current group.
Definition kconfiggroup.h:223
KConfigSkeletonGenericItem(const QString &_group, const QString &_key, QColor &reference, QColor defaultValue)
Definition kcoreconfigskeleton.h:333
QColor & mReference
Definition kcoreconfigskeleton.h:422
KConfigGroup configGroup(KConfig *config) const
Return a KConfigGroup, the one provided by setGroup(const KConfigGroup&) if it's valid,...
Definition kcoreconfigskeleton.cpp:61
void readImmutability(const KConfigGroup &group)
Sets mIsImmutable to true if mKey in config is immutable.
Definition kcoreconfigskeleton.cpp:177
Class for handling a color preferences item.
Definition kconfigskeleton.h:35
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file.
Definition kconfigskeleton.cpp:28
bool isEqual(const QVariant &p) const override
Definition kconfigskeleton.cpp:43
ItemColor(const QString &_group, const QString &_key, QColor &reference, const QColor &defaultValue=QColor(128, 128, 128))
Constructor.
Definition kconfigskeleton.cpp:23
ItemFont(const QString &_group, const QString &_key, QFont &reference, const QFont &defaultValue=QFont())
Constructor.
Definition kconfigskeleton.cpp:53
bool isEqual(const QVariant &p) const override
Definition kconfigskeleton.cpp:73
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file.
Definition kconfigskeleton.cpp:58
ItemColor * addItemColor(const QString &name, QColor &reference, const QColor &defaultValue=QColor(128, 128, 128), const QString &key=QString())
Register an item of type QColor.
Definition kconfigskeleton.cpp:83
KConfigSkeleton(const QString &configname=QString(), QObject *parent=nullptr)
Constructor.
Definition kconfigskeleton.cpp:13
ItemFont * addItemFont(const QString &name, QFont &reference, const QFont &defaultValue=QFont(), const QString &key=QString())
Register an item of type QFont.
Definition kconfigskeleton.cpp:91
KConfig * config()
Return the KConfig object used for reading and writing the settings.
Definition kcoreconfigskeleton.cpp:1243
KCoreConfigSkeleton(const QString &configname=QString(), QObject *parent=nullptr)
Constructor.
Definition kcoreconfigskeleton.cpp:1211
void addItem(KConfigSkeletonItem *item, const QString &name=QString())
Register a custom KConfigSkeletonItem item with a given name.
Definition kcoreconfigskeleton.cpp:1357
QObject(QObject *parent)
QObject * parent() const const
bool isNull() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.