KConfig
kconfigpropertymap.cpp
47 // Reload the config only if the change signal has *not* been emitted by ourselves updating the config
53 connect(this, &KConfigPropertyMap::valueChanged, this, [this](const QString &key, const QVariant &value) {
123 // Internally sync the config. This way we ensure the config file is written, even if the process crashed
@ Notify
Notify remote KConfigWatchers of changes (requires DBus support) Implied persistent.
Definition kconfigbase.h:51
@ Normal
Save the entry to the application specific config file without a locale tag.
Definition kconfigbase.h:57
An object that (optionally) automatically saves changes in a property map to a configuration object (...
Definition kconfigpropertymap.h:30
bool isNotify() const
Whether notifications on config changes are enabled.
Definition kconfigpropertymap.cpp:62
Q_INVOKABLE bool isImmutable(const QString &key) const
Whether the value at the given key is immutable.
Definition kconfigpropertymap.cpp:86
Q_INVOKABLE void writeConfig()
Saves the state of the property map on disk.
Definition kconfigpropertymap.cpp:72
void setNotify(bool notify)
Enable or disable notifications on config changes.
Definition kconfigpropertymap.cpp:67
void setWriteFlags(KConfigBase::WriteConfigFlags flags)
The write flags to be used when writing configuration.
Definition kcoreconfigskeleton.cpp:131
Class for handling preferences settings for an application.
Definition kcoreconfigskeleton.h:551
void configChanged()
This signal is emitted when the configuration change.
KConfigSkeletonItem * findItem(const QString &name) const
Lookup item by name.
Definition kcoreconfigskeleton.cpp:1558
KConfigSkeletonItem::List items() const
Return list of items managed by this KCoreConfigSkeleton object.
Definition kcoreconfigskeleton.cpp:1263
void insert(const QString &key, const QVariant &value)
QVariant value(const QString &key) const const
void valueChanged(const QString &key, const QVariant &value)
QFuture< void > map(Iterator begin, Iterator end, MapFunctor &&function)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
int userType() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:09 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:09 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.