KCMUtils
kcmoduleloader.cpp
66 lab->setTextInteractionFlags(lab->textInteractionFlags() | Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
71 lab->setTextInteractionFlags(lab->textInteractionFlags() | Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
76KCModule *KCModuleLoader::loadModule(const KPluginMetaData &metaData, QWidget *parent, const QVariantList &args, const std::shared_ptr<QQmlEngine> &eng)
79 return new KCMError(i18n("The module %1 is disabled.", metaData.pluginId()), i18n("The module has been disabled by the system administrator."), parent);
91 const QVariantList pluginArgs = QVariantList(args) << metaData.rawData().value(QLatin1String("X-KDE-KCM-Args")).toArray().toVariantList();
static Q_INVOKABLE bool authorizeControlModule(const QString &pluginId)
virtual QWidget * widget()
Get the associated widget that can be embedded The returned widget should be used as a parent for wid...
Definition kcmodule.cpp:109
QString pluginId() const
QJsonObject rawData() const
QString fileName() const
QString i18n(const char *text, const TYPE &arg...)
Loads a KCModule In case the provided metadata points to a KQuickConfigModule, it is wrapped in a KCM...
Definition kcmoduleloader.h:26
KCMUTILS_EXPORT KCModule * loadModule(const KPluginMetaData &metaData, QWidget *parent=nullptr, const QVariantList &args={}, const std::shared_ptr< QQmlEngine > &engine={})
Loads a KCModule.
Definition kcmoduleloader.cpp:76
qreal pointSizeF() const const
void setBold(bool enable)
void setPointSizeF(qreal pointSize)
QVariantList toVariantList() const const
QJsonValue value(QLatin1StringView key) const const
QJsonArray toArray() const const
void setTextInteractionFlags(Qt::TextInteractionFlags flags)
void setWordWrap(bool on)
Q_OBJECTQ_OBJECT
QObject * parent() const const
bool isNull() const const
QString trimmed() const const
TextSelectableByMouse
font
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.