KDeclarative
managedconfigmodule.cpp
31 ManagedConfigModule::ManagedConfigModule(const KAboutData *aboutData, QObject *parent, const QVariantList &args)
37 ManagedConfigModule::ManagedConfigModule(const KPluginMetaData &metaData, QObject *parent, const QVariantList &args)
133 QObject::connect(skeleton, &KCoreConfigSkeleton::configChanged, this, &ManagedConfigModule::settingsChanged);
137 const auto itemHasSignals = dynamic_cast<KConfigCompilerSignallingItem*>(item) || dynamic_cast<KPropertySkeletonItem*>(item);
void setNeedsSave(bool needs)
Set this property to true when the user changes something in the module, signaling that a save (such ...
Definition: configmodule.cpp:453
QMetaMethod notifySignal() const const
int indexOfMethod(const char *method) const const
void load() override
Load the configuration data into the module.
Definition: managedconfigmodule.cpp:54
Definition: configmodule.cpp:31
virtual const QMetaObject * metaObject() const const
void setRepresentsDefaults(bool defaults)
Set this property to true when the user sets the state of the module to the default settings (e...
Definition: configmodule.cpp:468
ManagedConfigModule(const KAboutData *aboutData, QObject *parent=nullptr, const QVariantList &args=QVariantList())
Base class for all modules which manage automatically some of their state.
Definition: managedconfigmodule.cpp:31
void configChanged()
QVariant property(const char *name) const const
void registerSettings(KCoreConfigSkeleton *skeleton)
Allow to register manually settings class generated from a kcfg file.
Definition: managedconfigmodule.cpp:122
void defaults() override
Sets the configuration to sensible default values.
Definition: managedconfigmodule.cpp:72
bool isUpper() const const
const char * constData() const const
bool needsSave()
True when the module has something changed and needs save.
QString toLower() const const
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
int indexOfProperty(const char *name) const const
QString name() const
const QChar at(int position) const const
bool representsDefaults()
True when the module state represents the default settings.
QueuedConnection
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const const
QMetaMethod method(int index) const const
KConfigSkeletonItem::List items() const
void settingsChanged()
Forces the module to reevaluate the saveNeeded and representsDefault state.
Definition: managedconfigmodule.cpp:99
QMetaProperty property(int index) const const
QByteArray toUtf8() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 22:38:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 22:38:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.