KCMUtils
kquickconfigmodule.cpp
59QHash<QQmlContext *, KQuickConfigModule *> KQuickConfigModulePrivate::rootObjects = QHash<QQmlContext *, KQuickConfigModule *>();
85 // at the moment of the attached object creation, the root item is the only one that hasn't a parent
126 const QString platformResourcePath = d->getResourcePath(QString(QStringLiteral("main_%1.qml")).arg(platform));
166 QObject *object = d->engine->createObjectFromSource(d->getResourceUrl(resourcePath), d->engine->rootContext(), initialProperties);
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:61
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:195
void setCurrentIndex(int index)
Sets the current page index this kcm should display.
Definition kquickconfigmodule.cpp:234
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:255
std::shared_ptr< QQmlEngine > engine() const
Definition kquickconfigmodule.cpp:250
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:155
QQuickItem * takeLast()
remove and return the last page of the KCM hierarchy: the popped page won't be deleted,...
Definition kquickconfigmodule.cpp:202
QString i18n(const char *text, const TYPE &arg...)
KCOREADDONS_EXPORT QStringList runtimePlatform()
T value(const Key &key) const const
QObject(QObject *parent)
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-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:31 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:31 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.