9#ifndef KCONFIGSKELETON_H
10#define KCONFIGSKELETON_H
12#include <kconfiggui_export.h>
14#include <kcoreconfigskeleton.h>
38 ItemColor(
const QString &_group,
const QString &_key, QColor &reference,
const QColor &defaultValue = QColor(128, 128, 128));
47 bool isEqual(
const QVariant &p)
const override;
60 ItemFont(
const QString &_group,
const QString &_key, QFont &reference,
const QFont &defaultValue = QFont());
69 bool isEqual(
const QVariant &p)
const override;
82 explicit KConfigSkeleton(
const QString &configname = QString(), QObject *parent =
nullptr);
102 ItemColor *
addItemColor(
const QString &name, QColor &reference,
const QColor &defaultValue = QColor(128, 128, 128),
const QString &key = QString());
115 ItemFont *
addItemFont(
const QString &name, QFont &reference,
const QFont &defaultValue = QFont(),
const QString &key = QString());
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.
bool isEqual(const QVariant &p) const override
void setProperty(const QVariant &p) override
Set item to p.
ItemColor(const QString &_group, const QString &_key, QColor &reference, const QColor &defaultValue=QColor(128, 128, 128))
Constructor.
QVariant property() const override
Return item as property.
Class for handling a font preferences item.
Definition kconfigskeleton.h:57
void setProperty(const QVariant &p) override
Set item to p.
QVariant property() const override
Return item as property.
ItemFont(const QString &_group, const QString &_key, QFont &reference, const QFont &defaultValue=QFont())
Constructor.
bool isEqual(const QVariant &p) const override
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file.
Class for handling preferences settings for an application.
Definition kconfigskeleton.h:28
KConfigSkeleton(KSharedConfig::Ptr config, QObject *parent=nullptr)
Constructor.
ItemColor * addItemColor(const QString &name, QColor &reference, const QColor &defaultValue=QColor(128, 128, 128), const QString &key=QString())
Register an item of type QColor.
KConfigSkeleton(const QString &configname=QString(), QObject *parent=nullptr)
Constructor.
ItemFont * addItemFont(const QString &name, QFont &reference, const QFont &defaultValue=QFont(), const QString &key=QString())
Register an item of type QFont.
The central class of the KDE configuration data system.
Definition kconfig.h:57
Class for handling preferences settings for an application.
Definition kcoreconfigskeleton.h:551