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
Base class for storing a preferences setting of type T.
Definition kcoreconfigskeleton.h:326
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
Class for handling preferences settings for an application.
Definition kcoreconfigskeleton.h:551
KConfig * config()
Return the KConfig object used for reading and writing the settings.
Definition kcoreconfigskeleton.cpp:1243
void addItem(KConfigSkeletonItem *item, const QString &name=QString())
Register a custom KConfigSkeletonItem item with a given name.
Definition kcoreconfigskeleton.cpp:1357
bool isNull() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.