KConfig
kcoreconfigskeleton.cpp
37 KConfigSkeletonItem::KConfigSkeletonItem(KConfigSkeletonItemPrivate &dd, const QString &_group, const QString &_key)
200 KPropertySkeletonItem::KPropertySkeletonItem(QObject *object, const QByteArray &propertyName, const QVariant &defaultValue)
201 : KConfigSkeletonItem(*new KPropertySkeletonItemPrivate(object, propertyName, defaultValue), {}, {})
599 // TODO KF6: remove KConfigSkeletonItemPrivate::mValues and add a value field to KCoreConfigSkeleton::ItemEnum::Choice
604 void KCoreConfigSkeleton::ItemEnum::setValueForChoice(const QString &name, const QString &value)
1152 //static int kCoreConfigSkeletionDebugArea() { static int s_area = KDebug::registerArea("kdecore (KConfigSkeleton)"); return s_area; }
1369 KCoreConfigSkeleton::ItemString *KCoreConfigSkeleton::addItemString(const QString &name, QString &reference,
1380 KCoreConfigSkeleton::ItemPassword *KCoreConfigSkeleton::addItemPassword(const QString &name, QString &reference,
1390 KCoreConfigSkeleton::ItemPath *KCoreConfigSkeleton::addItemPath(const QString &name, QString &reference,
1400 KCoreConfigSkeleton::ItemProperty *KCoreConfigSkeleton::addItemProperty(const QString &name, QVariant &reference,
1410 KCoreConfigSkeleton::ItemBool *KCoreConfigSkeleton::addItemBool(const QString &name, bool &reference,
1420 KCoreConfigSkeleton::ItemInt *KCoreConfigSkeleton::addItemInt(const QString &name, qint32 &reference,
1430 KCoreConfigSkeleton::ItemUInt *KCoreConfigSkeleton::addItemUInt(const QString &name, quint32 &reference,
1440 KCoreConfigSkeleton::ItemLongLong *KCoreConfigSkeleton::addItemLongLong(const QString &name, qint64 &reference,
1461 KCoreConfigSkeleton::ItemULongLong *KCoreConfigSkeleton::addItemULongLong(const QString &name, quint64 &reference,
1482 KCoreConfigSkeleton::ItemDouble *KCoreConfigSkeleton::addItemDouble(const QString &name, double &reference,
1492 KCoreConfigSkeleton::ItemRect *KCoreConfigSkeleton::addItemRect(const QString &name, QRect &reference,
1502 KCoreConfigSkeleton::ItemPoint *KCoreConfigSkeleton::addItemPoint(const QString &name, QPoint &reference,
1512 KCoreConfigSkeleton::ItemSize *KCoreConfigSkeleton::addItemSize(const QString &name, QSize &reference,
1522 KCoreConfigSkeleton::ItemDateTime *KCoreConfigSkeleton::addItemDateTime(const QString &name, QDateTime &reference,
1532 KCoreConfigSkeleton::ItemStringList *KCoreConfigSkeleton::addItemStringList(const QString &name, QStringList &reference,
1542 KCoreConfigSkeleton::ItemIntList *KCoreConfigSkeleton::addItemIntList(const QString &name, QList<int> &reference,
1563 KConfigCompilerSignallingItem::KConfigCompilerSignallingItem(KConfigSkeletonItem* item, QObject* object,
1565 : KConfigSkeletonItem(item->group(), item->key()), mItem(item), mTargetFunction(targetFunction),
void writeConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to write the value of this setting to a config file...
Definition: kcoreconfigskeleton.cpp:365
Class for handling unsigned 64-bit integer preferences item.
Definition: kcoreconfigskeleton.h:863
void readConfig(KConfig *) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:241
qlonglong toLongLong(bool *ok) const const
QString readPathEntry(const QString &pKey, const QString &aDefault) const
Reads a path.
Definition: kconfiggroup.cpp:796
virtual bool usrWriteConfig()
Definition: kcoreconfigskeleton.cpp:1324
KConfig * config()
Return the KConfig object used for reading and writing the settings.
Definition: kcoreconfigskeleton.cpp:1186
ItemInt(const QString &_group, const QString &_key, qint32 &reference, qint32 defaultValue=0)
Definition: kcoreconfigskeleton.cpp:466
Class for proxying a QObject property as a preferences setting.
Definition: kcoreconfigskeleton.h:277
ItemSize * addItemSize(const QString &name, QSize &reference, const QSize &defaultValue=QSize(), const QString &key=QString())
Register an item of type QSize.
Definition: kcoreconfigskeleton.cpp:1512
void setDefault() override
Sets the current value to the default value.
Definition: kcoreconfigskeleton.cpp:261
virtual bool usrSave()
Perform the actual writing of the configuration file.
Definition: kcoreconfigskeleton.cpp:1314
void writePathEntry(const QString &pKey, const QString &path, WriteConfigFlags pFlags=Normal)
Writes a file path to the configuration.
Definition: kconfiggroup.cpp:1108
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:826
void writeConfig(KConfig *) override
This function is called by KCoreConfigSkeleton to write the value of this setting to a config file...
Definition: kcoreconfigskeleton.cpp:248
Class for handling a floating point preference item.
Definition: kcoreconfigskeleton.h:907
Class for handling a string preferences item.
Definition: kcoreconfigskeleton.h:543
void setMaxValue(quint32)
Set the maximum value for the item.
Definition: kcoreconfigskeleton.cpp:728
bool hasDefault(const QString &key) const
Whether a default is specified for an entry in either the system wide configuration file or the globa...
Definition: kconfiggroup.cpp:1185
QDateTime toDateTime() const const
ItemPathList(const QString &_group, const QString &_key, QStringList &reference, const QStringList &defaultValue=QStringList())
Definition: kcoreconfigskeleton.cpp:1023
void removeItem(const QString &name)
Removes and deletes an item by name.
Definition: kcoreconfigskeleton.cpp:1351
ItemLongLong * addItemInt64(const QString &name, qint64 &reference, qint64 defaultValue=0, const QString &key=QString())
Definition: kcoreconfigskeleton.cpp:1451
bool isImmutable() const
Return if the entry can be modified.
Definition: kcoreconfigskeleton.cpp:152
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:676
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:334
QVariant maxValue() const override
Get the maximum value this is allowed to be stored in this item.
Definition: kcoreconfigskeleton.cpp:576
QVariant minValue() const override
Get the minimum value that is allowed to be stored in this item.
Definition: kcoreconfigskeleton.cpp:836
bool isEntryImmutable(const QString &key) const
Checks if it is possible to change the given entry.
Definition: kconfiggroup.cpp:636
const T & at(int i) const const
bool isSaveNeeded() const
Indicates if the item has a different value than the previously loaded value.
Definition: kcoreconfigskeleton.cpp:164
ItemEnum(const QString &_group, const QString &_key, qint32 &reference, const QList< Choice > &choices, qint32 defaultValue=0)
Definition: kcoreconfigskeleton.cpp:609
ItemPoint(const QString &_group, const QString &_key, QPoint &reference, const QPoint &defaultValue=QPoint())
Definition: kcoreconfigskeleton.cpp:895
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:1124
void setCurrentGroup(const QString &group)
Set the config file group for subsequent addItem() calls.
Definition: kcoreconfigskeleton.cpp:1176
void writeConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to write the value of this setting to a config file...
Definition: kcoreconfigskeleton.cpp:1085
bool isDefaults() const
Indicates if all the registered items are set to their default value.
Definition: kcoreconfigskeleton.cpp:1250
QVariant maxValue() const override
Get the maximum value this is allowed to be stored in this item.
Definition: kcoreconfigskeleton.cpp:779
ItemDateTime(const QString &_group, const QString &_key, QDateTime &reference, const QDateTime &defaultValue=QDateTime())
Definition: kcoreconfigskeleton.cpp:957
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
Writes a value to the configuration object.
Definition: kconfiggroup.cpp:1071
bool isSaveNeeded() const
Indicates if any registered item has a different value than the previously loaded value...
Definition: kcoreconfigskeleton.cpp:1261
Class for handling a QDateTime preferences item.
Definition: kcoreconfigskeleton.h:1017
ItemBool(const QString &_group, const QString &_key, bool &reference, bool defaultValue=true)
Definition: kcoreconfigskeleton.cpp:436
Class for handling a 64-bit integer preferences item.
Definition: kcoreconfigskeleton.h:732
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:617
A path to a file or directory.
Definition: kcoreconfigskeleton.h:546
virtual void usrSetDefaults()
Perform the actual setting of default values.
Definition: kcoreconfigskeleton.cpp:1297
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:964
virtual QVariant maxValue() const
Return maximum value of item or invalid if not specified.
Definition: kcoreconfigskeleton.cpp:147
ItemUrlList(const QString &_group, const QString &_key, QList< QUrl > &reference, const QList< QUrl > &defaultValue=QList< QUrl >())
Definition: kcoreconfigskeleton.cpp:1057
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:393
qulonglong toULongLong(bool *ok) const const
Class for handling a password preferences item.
Definition: kcoreconfigskeleton.h:591
void setValueForChoice(const QString &name, const QString &valueForChoice)
Stores a choice value for name.
Definition: kcoreconfigskeleton.cpp:604
void configChanged()
This signal is emitted when the configuration change.
ItemDateTime * addItemDateTime(const QString &name, QDateTime &reference, const QDateTime &defaultValue=QDateTime(), const QString &key=QString())
Register an item of type QDateTime.
Definition: kcoreconfigskeleton.cpp:1522
void writeConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to write the value of this setting to a config file...
Definition: kcoreconfigskeleton.cpp:643
ItemUInt * addItemUInt(const QString &name, quint32 &reference, quint32 defaultValue=0, const QString &key=QString())
Register an item of type quint32.
Definition: kcoreconfigskeleton.cpp:1430
void readDefault(KConfig *) override
Read global default value.
Definition: kcoreconfigskeleton.cpp:255
bool isNull() const const
ItemIntList * addItemIntList(const QString &name, QList< int > &reference, const QList< int > &defaultValue=QList< int >(), const QString &key=QString())
Register an item of type QList<int>.
Definition: kcoreconfigskeleton.cpp:1542
KConfigSkeletonItem * findItem(const QString &name) const
Lookup item by name.
Definition: kcoreconfigskeleton.cpp:1558
ItemStringList(const QString &_group, const QString &_key, QStringList &reference, const QStringList &defaultValue=QStringList())
Definition: kcoreconfigskeleton.cpp:988
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:442
virtual void readConfig(KConfig *)=0
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
void setWhatsThis(const QString &w)
Set WhatsThis description of item.
Definition: kcoreconfigskeleton.cpp:118
bool isDefault() const
Indicates if the item is set to its default value.
Definition: kcoreconfigskeleton.cpp:158
ItemUrl(const QString &_group, const QString &_key, QUrl &reference, const QUrl &defaultValue=QUrl())
Definition: kcoreconfigskeleton.cpp:358
Class for handling a QVariant preferences item.
Definition: kcoreconfigskeleton.h:644
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:933
ItemUInt(const QString &_group, const QString &_key, quint32 &reference, quint32 defaultValue=0)
Definition: kcoreconfigskeleton.cpp:668
bool isEqual(const QVariant &p) const override
Definition: kcoreconfigskeleton.cpp:235
int count(const T &value) const const
void append(const T &value)
uint toUInt(bool *ok) const const
void setWriteFlags(KConfigBase::WriteConfigFlags flags)
The write flags to be used when writing configuration.
Definition: kcoreconfigskeleton.cpp:130
Class for handling a bool preferences item.
Definition: kcoreconfigskeleton.h:664
int toInt(bool *ok) const const
ItemInt * addItemInt(const QString &name, qint32 &reference, qint32 defaultValue=0, const QString &key=QString())
Register an item of type qint32.
Definition: kcoreconfigskeleton.cpp:1420
KConfigGroup configGroup(KConfig *config) const
Return a KConfigGroup, the one provided by setGroup(KConfigGroup) if it's valid, or make one from...
Definition: kcoreconfigskeleton.cpp:60
Class for handling an unsigned 32-bit integer preferences item.
Definition: kcoreconfigskeleton.h:822
ItemIntList(const QString &_group, const QString &_key, QList< int > &reference, const QList< int > &defaultValue=QList< int >())
Definition: kcoreconfigskeleton.cpp:1117
void setToolTip(const QString &t)
Set ToolTip description of item.
Definition: kcoreconfigskeleton.cpp:106
bool isEmpty() const const
void setLabel(const QString &l)
Set label providing a translated one-line description of the item.
Definition: kcoreconfigskeleton.cpp:94
ItemBool * addItemBool(const QString &name, bool &reference, bool defaultValue=false, const QString &key=QString())
Register an item of type bool.
Definition: kcoreconfigskeleton.cpp:1410
ItemPath * addItemPath(const QString &name, QString &reference, const QString &defaultValue=QLatin1String(""), const QString &key=QString())
Register a path item of type QString.
Definition: kcoreconfigskeleton.cpp:1390
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:1030
ItemULongLong * addItemULongLong(const QString &name, quint64 &reference, quint64 defaultValue=0, const QString &key=QString())
Register an item of type quint64.
Definition: kcoreconfigskeleton.cpp:1461
QVariant minValue() const override
Get the minimum value that is allowed to be stored in this item.
Definition: kcoreconfigskeleton.cpp:706
virtual void usrReadConfig()
Definition: kcoreconfigskeleton.cpp:1309
QVariant maxValue() const override
Get the maximum value this is allowed to be stored in this item.
Definition: kcoreconfigskeleton.cpp:714
ItemLongLong * addItemLongLong(const QString &name, qint64 &reference, qint64 defaultValue=0, const QString &key=QString())
Register an item of type qint64.
Definition: kcoreconfigskeleton.cpp:1440
Class for handling a QRect preferences item.
Definition: kcoreconfigskeleton.h:948
ItemStringList * addItemStringList(const QString &name, QStringList &reference, const QStringList &defaultValue=QStringList(), const QString &key=QString())
Register an item of type QStringList.
Definition: kcoreconfigskeleton.cpp:1532
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:425
QSize toSize() const const
ItemDouble(const QString &_group, const QString &_key, double &reference, double defaultValue=0)
Definition: kcoreconfigskeleton.cpp:799
QString toLower() const const
ItemPassword(const QString &_group, const QString &_key, QString &reference, const QString &defaultValue=QLatin1String(""))
Definition: kcoreconfigskeleton.cpp:344
ItemRect * addItemRect(const QString &name, QRect &reference, const QRect &defaultValue=QRect(), const QString &key=QString())
Register an item of type QRect.
Definition: kcoreconfigskeleton.cpp:1492
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:902
KConfigSkeletonItem(const QString &_group, const QString &_key)
Constructor.
Definition: kcoreconfigskeleton.cpp:29
Class for handling a 32-bit integer preferences item.
Definition: kcoreconfigskeleton.h:687
bool hasKey(const QString &key) const
Checks whether the key has an entry in this group.
Definition: kconfiggroup.cpp:1202
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:538
ItemPoint * addItemPoint(const QString &name, QPoint &reference, const QPoint &defaultValue=QPoint(), const QString &key=QString())
Register an item of type QPoint.
Definition: kcoreconfigskeleton.cpp:1502
void setMinValue(quint64)
Set the minimum value for the item.
Definition: kcoreconfigskeleton.cpp:787
ItemULongLong * addItemUInt64(const QString &name, quint64 &reference, quint64 defaultValue=0, const QString &key=QString())
Definition: kcoreconfigskeleton.cpp:1472
QVariant minValue() const override
Get the minimum value that is allowed to be stored in this item.
Definition: kcoreconfigskeleton.cpp:771
void swapDefault() override
Exchanges the current value with the default value Used by KCoreConfigSkeleton::useDefaults(bool);.
Definition: kcoreconfigskeleton.cpp:267
void setMinValue(quint32)
Set the minimum value for the item.
Definition: kcoreconfigskeleton.cpp:722
ItemLongLong(const QString &_group, const QString &_key, qint64 &reference, qint64 defaultValue=0)
Definition: kcoreconfigskeleton.cpp:531
const QChar * unicode() const const
void writeConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to write the value of this setting to a config file...
Definition: kcoreconfigskeleton.cpp:1043
Class for handling a QPoint preferences item.
Definition: kcoreconfigskeleton.h:971
void readImmutability(const KConfigGroup &group)
sets mIsImmutable to true if mKey in config is immutable
Definition: kcoreconfigskeleton.cpp:176
QString valueForChoice(const QString &name) const
Returns the value for for the choice with the given name.
Definition: kcoreconfigskeleton.cpp:596
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:311
QStringList toStringList() const const
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:978
QVariant minValue() const override
Get the minimum value that is allowed to be stored in this item.
Definition: kcoreconfigskeleton.cpp:568
void setSharedConfig(KSharedConfig::Ptr pConfig)
Set the KSharedConfig object used for reading and writing the settings.
Definition: kcoreconfigskeleton.cpp:1201
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:1142
Class for handling a QSize preferences item.
Definition: kcoreconfigskeleton.h:994
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:871
virtual void setDefaults()
Set all registered items to their default values.
Definition: kcoreconfigskeleton.cpp:1226
KCoreConfigSkeleton(const QString &configname=QString(), QObject *parent=nullptr)
Constructor.
Definition: kcoreconfigskeleton.cpp:1154
ItemRect(const QString &_group, const QString &_key, QRect &reference, const QRect &defaultValue=QRect())
Definition: kcoreconfigskeleton.cpp:864
ItemPath(const QString &_group, const QString &_key, QString &reference, const QString &defaultValue=QString())
Definition: kcoreconfigskeleton.cpp:351
void setNotifyFunction(const std::function< void()> &impl)
Set a notify function, it will be invoked when the value of the property changes. ...
Definition: kcoreconfigskeleton.cpp:279
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:1064
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:378
ItemDouble * addItemDouble(const QString &name, double &reference, double defaultValue=0.0, const QString &key=QString())
Register an item of type double.
Definition: kcoreconfigskeleton.cpp:1482
void writeConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to write the value of this setting to a config file...
Definition: kcoreconfigskeleton.cpp:294
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:916
ItemULongLong(const QString &_group, const QString &_key, quint64 &reference, quint64 defaultValue=0)
Definition: kcoreconfigskeleton.cpp:734
QVariant maxValue() const override
Get the maximum value this is allowed to be stored in this item.
Definition: kcoreconfigskeleton.cpp:511
void addItem(KConfigSkeletonItem *, const QString &name=QString())
Register a custom KConfigSkeletonItem with a given name.
Definition: kcoreconfigskeleton.cpp:1330
ItemPassword * addItemPassword(const QString &name, QString &reference, const QString &defaultValue=QLatin1String(""), const QString &key=QString())
Register a password item of type QString.
Definition: kcoreconfigskeleton.cpp:1380
typedef ConstIterator
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:1013
QVariant maxValue() const override
Get the maximum value this is allowed to be stored in this item.
Definition: kcoreconfigskeleton.cpp:844
void setName(const QString &_name)
Set internal name of entry.
Definition: kcoreconfigskeleton.cpp:84
QString whatsThis() const
Return WhatsThis description of item.
Definition: kcoreconfigskeleton.cpp:124
ItemString * addItemString(const QString &name, QString &reference, const QString &defaultValue=QLatin1String(""), const QString &key=QString())
Register an item of type QString.
Definition: kcoreconfigskeleton.cpp:1369
int length() const const
bool toBool() const const
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:761
virtual void usrRead()
Perform the actual reading of the configuration file.
Definition: kcoreconfigskeleton.cpp:1301
Class for handling a string list preferences item.
Definition: kcoreconfigskeleton.h:1041
QPoint toPoint() const const
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:1107
double toDouble(bool *ok) const const
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:473
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:995
KSharedConfig::Ptr sharedConfig() const
Return the KConfig object used for reading and writing the settings.
Definition: kcoreconfigskeleton.cpp:1196
QRect toRect() const const
QList::const_iterator constEnd() const const
Fully-fledged config, including globals and cascading to system settings.
Definition: kconfig.h:89
QList::const_iterator constBegin() const const
KPropertySkeletonItem(QObject *object, const QByteArray &propertyName, const QVariant &defaultValue)
Constructor.
Definition: kcoreconfigskeleton.cpp:200
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:806
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:696
QObject * parent() const const
Class for handling an integer list preferences item.
Definition: kcoreconfigskeleton.h:1109
KConfigBase::WriteConfigFlags writeFlags() const
Return write flags to be used when writing configuration.
Definition: kcoreconfigskeleton.cpp:136
QString toString() const const
QString currentGroup() const
Returns the current group used for addItem() calls.
Definition: kcoreconfigskeleton.cpp:1181
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:947
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:250
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:493
virtual bool usrUseDefaults(bool b)
Implemented by subclasses that use special defaults.
Definition: kcoreconfigskeleton.cpp:1292
void revertToDefault(const QString &key)
Reverts an entry to the default settings.
Definition: kconfiggroup.cpp:1166
void setMaxValue(quint64)
Set the maximum value for the item.
Definition: kcoreconfigskeleton.cpp:793
KConfigSkeletonItem::List items() const
Return list of items managed by this KCoreConfigSkeleton object.
Definition: kcoreconfigskeleton.cpp:1206
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:558
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:741
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:456
void readConfig(KConfig *config) override
This function is called by KCoreConfigSkeleton to read the value for this setting from a config file...
Definition: kcoreconfigskeleton.cpp:411
Q_INVOKABLE bool isImmutable(const QString &name) const
Return whether a certain item is immutable.
Definition: kcoreconfigskeleton.cpp:1552
bool isEqual(const QVariant &p) const override
Check whether the item is equal to p.
Definition: kcoreconfigskeleton.cpp:885
ItemSize(const QString &_group, const QString &_key, QSize &reference, const QSize &defaultValue=QSize())
Definition: kcoreconfigskeleton.cpp:926
Class for handling a path preferences item.
Definition: kcoreconfigskeleton.h:603
ItemProperty * addItemProperty(const QString &name, QVariant &reference, const QVariant &defaultValue=QVariant(), const QString &key=QString())
Register a property item of type QVariant.
Definition: kcoreconfigskeleton.cpp:1400
QVariant minValue() const override
Get the minimum value that is allowed to be stored in this item.
Definition: kcoreconfigskeleton.cpp:503
virtual QVariant minValue() const
Return minimum value of item or invalid if not specified.
Definition: kcoreconfigskeleton.cpp:142
ItemProperty(const QString &_group, const QString &_key, QVariant &reference, const QVariant &defaultValue=QVariant())
Definition: kcoreconfigskeleton.cpp:403
ItemString(const QString &_group, const QString &_key, QString &reference, const QString &defaultValue=QLatin1String(""), Type type=Normal)
Definition: kcoreconfigskeleton.cpp:285
virtual bool useDefaults(bool b)
Specify whether this object should reflect the actual values or the default values.
Definition: kcoreconfigskeleton.cpp:1211
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 16 2021 22:50:01 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 16 2021 22:50:01 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.