KCMUtils
kquickmanagedconfigmodule.cpp
28KQuickManagedConfigModule::KQuickManagedConfigModule(QObject *parent, const KPluginMetaData &metaData)
107 QObject::connect(skeleton, &KCoreConfigSkeleton::configChanged, this, &KQuickManagedConfigModule::settingsChanged);
111 const auto itemHasSignals = dynamic_cast<KConfigCompilerSignallingItem *>(item) || dynamic_cast<KPropertySkeletonItem *>(item);
132 auto toRemove = std::remove_if(d->_skeletons.begin(), d->_skeletons.end(), [](const QPointer<KCoreConfigSkeleton> &value) {
void setNeedsSave(bool needs)
Set this property to true when the user changes something in the module, signaling that a save (such ...
Definition kabstractconfigmodule.cpp:96
void setRepresentsDefaults(bool defaults)
Set this property to true when the user sets the state of the module to the default settings (e....
Definition kabstractconfigmodule.cpp:111
KConfigSkeletonItem::List items() const
The base class for QtQuick configuration modules.
Definition kquickconfigmodule.h:106
The base class for configuration modules using KConfigXT settings.
Definition kquickmanagedconfigmodule.h:41
~KQuickManagedConfigModule() override
Destroys the module.
void settingsChanged()
Forces the module to reevaluate the saveNeeded and representsDefault state.
Definition kquickmanagedconfigmodule.cpp:73
void registerSettings(KCoreConfigSkeleton *skeleton)
Allow to register manually settings class generated from a kcfg file.
Definition kquickmanagedconfigmodule.cpp:96
void load() override
Load the configuration data into the module.
Definition kquickmanagedconfigmodule.cpp:36
KQuickManagedConfigModule(QObject *parent, const KPluginMetaData &metaData)
Base class for all KControlModules.
Definition kquickmanagedconfigmodule.cpp:28
void defaults() override
Sets the configuration to sensible default values.
Definition kquickmanagedconfigmodule.cpp:54
const char * constData() const const
bool isUpper(char32_t ucs4)
int indexOfMethod(const char *method) const const
int indexOfProperty(const char *name) const const
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
QMetaMethod method(int index) const const
QMetaProperty property(int index) const const
QMetaMethod notifySignal() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QList< T > findChildren(Qt::FindChildOptions options) const const
virtual const QMetaObject * metaObject() const const
QVariant property(const char *name) const const
const QChar at(qsizetype position) const const
QString toLower() const const
QByteArray toUtf8() const const
QueuedConnection
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:19 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:02:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.