KCMUtils
kquickconfigmodule.cpp
58QHash<QQmlContext *, KQuickConfigModule *> KQuickConfigModulePrivate::rootObjects = QHash<QQmlContext *, KQuickConfigModule *>();
84 // at the moment of the attached object creation, the root item is the only one that hasn't a parent
152 QObject *object = d->engine->createObjectFromSource(d->getResourceUrl(resourcePath), d->engine->rootContext(), initialProperties);
Base class for QML and QWidgets config modules.
Definition kabstractconfigmodule.h:25
KPluginMetaData metaData() const
Returns the metaData that was used when instantiating the plugin.
Definition kabstractconfigmodule.cpp:140
QString pluginId() const
The base class for QtQuick configuration modules.
Definition kquickconfigmodule.h:106
void mainUiReady()
Emitted when the main Ui has loaded successfully and mainUi() is available.
void columnWidthChanged(int width)
Emitted when the wanted column width of the kcm changes.
KQuickConfigModule(QObject *parent, const KPluginMetaData &metaData)
Base class for all QtQuick config modules.
Definition kquickconfigmodule.cpp:60
void depthChanged(int index)
Emitted when the number of pages changed.
void pop()
pop the last page of the KCM hierarchy, the page is destroyed
Definition kquickconfigmodule.cpp:181
void setCurrentIndex(int index)
Sets the current page index this kcm should display.
Definition kquickconfigmodule.cpp:220
void currentIndexChanged(int index)
Emitted when the current page changed.
void pagePushed(QQuickItem *page)
Emitted when a new sub page is pushed.
QString errorString() const
The error string in case the mainUi failed to load.
Definition kquickconfigmodule.cpp:241
std::shared_ptr< QQmlEngine > engine() const
Definition kquickconfigmodule.cpp:236
void push(const QString &fileName, const QVariantMap &initialProperties=QVariantMap())
Push a new sub page in the KCM hierarchy: pages will be seen as a Kirigami PageRow.
Definition kquickconfigmodule.cpp:141
QQuickItem * takeLast()
remove and return the last page of the KCM hierarchy: the popped page won't be deleted,...
Definition kquickconfigmodule.cpp:188
QString i18n(const char *text, const TYPE &arg...)
bool remove(const Key &key)
T value(const Key &key) const const
Q_EMITQ_EMIT
QObject * parent() const const
T qobject_cast(QObject *object)
QQmlContext * parentContext() const const
bool isValid() const const
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.