KCMUtils
kpluginwidget.h
25 * A widget that shows a list of available plugins and allows to disable/enable them and open their configuration UI.
29 * An example value is "kf6/krunner/kcms/kcm_krunner_charrunner", "kf6/krunner/kcms" is the namespace
30 * and "kcm_krunner_charrunner" the file name. The loaded KCMs don't need any embedded json metadata.
81 * Returns @c true if the enabled state of each plugin is the same as that plugin's default state.
116 void setAdditionalButtonHandler(const std::function<QPushButton *(const KPluginMetaData &)> &handler);
QVariantList configurationArguments() const
Returns the configuration arguments that will be used.
Definition kpluginwidget.cpp:174
void load()
Loads the enabled state of the plugins from the config set by setConfig() and clears any changes by t...
Definition kpluginwidget.cpp:142
void setConfig(const KConfigGroup &config)
Set the config object that will be used to store the enabled state of the plugins.
Definition kpluginwidget.cpp:127
void setConfigurationArguments(const QVariantList &arguments)
Sets the arguments with which the configuration modules will be initialized.
Definition kpluginwidget.cpp:169
void setAdditionalButtonHandler(const std::function< QPushButton *(const KPluginMetaData &)> &handler)
Add additional widgets to each row of the plugin selector.
Definition kpluginwidget.cpp:207
void addPlugins(const QList< KPluginMetaData > &plugins, const QString &categoryLabel)
Adds the plugins with the given label to the widget.
Definition kpluginwidget.cpp:121
bool isSaveNeeded() const
Returns true if the plugin selector has any changes that are not yet saved to configuration.
Definition kpluginwidget.cpp:164
void pluginConfigSaved(const QString &pluginId)
Emitted after the config of an embedded KCM has been saved.
void showConfiguration(const QString &pluginId)
Shows the configuration dialog for the plugin pluginId if it's available.
Definition kpluginwidget.cpp:179
void setDefaultsIndicatorsVisible(bool isVisible)
Shows an indicator when a plugin status is different from default.
Definition kpluginwidget.cpp:199
void defaults()
Resets the enabled state of the plugins to their defaults.
Definition kpluginwidget.cpp:147
bool isDefault() const
Returns true if the enabled state of each plugin is the same as that plugin's default state.
Definition kpluginwidget.cpp:152
void pluginEnabledChanged(const QString &pluginId, bool enabled)
Emitted when any of the plugins are changed.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
enabled
bool isVisible() 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.