KConfig
kconfigskeleton.cpp
23 KConfigSkeleton::ItemColor::ItemColor(const QString &_group, const QString &_key, QColor &reference, const QColor &defaultValue)
52 KConfigSkeleton::ItemFont::ItemFont(const QString &_group, const QString &_key, QFont &reference, const QFont &defaultValue)
81 KConfigSkeleton::ItemColor *KConfigSkeleton::addItemColor(const QString &name, QColor &reference, const QColor &defaultValue, const QString &key)
84 item = new KConfigSkeleton::ItemColor(d->mCurrentGroup, key.isNull() ? name : key, reference, defaultValue);
89 KConfigSkeleton::ItemFont *KConfigSkeleton::addItemFont(const QString &name, QFont &reference, const QFont &defaultValue, const QString &key)
92 item = new KConfigSkeleton::ItemFont(d->mCurrentGroup, key.isNull() ? name : key, reference, defaultValue);
bool isNull() const const
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:81
Class for handling preferences settings for an application.
Definition: kcoreconfigskeleton.h:548
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:52
bool isEqual(const QVariant &p) const override
Definition: kconfigskeleton.cpp:71
Class for handling a font preferences item.
Definition: kconfigskeleton.h:56
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:57
KConfigSkeleton(const QString &configname=QString(), QObject *parent=nullptr)
Constructor.
Definition: kconfigskeleton.cpp:13
Definition: kconfiggroup.h:38
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:258
ItemFont * addItemFont(const QString &name, QFont &reference, const QFont &defaultValue=QFont(), const QString &key=QString())
Register an item of type QFont.
Definition: kconfigskeleton.cpp:89
void addItem(KConfigSkeletonItem *item, const QString &name=QString())
Register a custom KConfigSkeletonItem item with a given name.
Definition: kcoreconfigskeleton.cpp:1288
Base class for storing a preferences setting of type T.
Definition: kcoreconfigskeleton.h:325
Class for handling a color preferences item.
Definition: kconfigskeleton.h:34
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
KConfig * config()
Return the KConfig object used for reading and writing the settings.
Definition: kcoreconfigskeleton.cpp:1154
bool isEqual(const QVariant &p) const override
Definition: kconfigskeleton.cpp:42
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Jun 28 2022 04:08:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Jun 28 2022 04:08:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.