KCMUtils
kpluginmodel.h
26 * Plugins need to define the @c X-KDE-ConfigModule property for their config modules to be found.
28 * An example value is "kf6/krunner/kcms/kcm_krunner_charrunner", "kf6/krunner/kcms" is the namespace
29 * and "kcm_krunner_charrunner" the file name. The loaded KCMs don't need any embedded JSON metadata.
61 bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) override;
74 * This is useful in case your app has a custom sorting mechanism or implements reordering of plugins
A model that provides a list of available plugins and allows to disable/enable them.
Definition kpluginmodel.h:36
Q_SIGNAL void isSaveNeededChanged()
Emitted when isSaveNeeded is changed.
Q_SIGNAL void defaulted(bool isDefaulted)
Emitted when the enabled state matches the default changes.
virtual QVariant data(const QModelIndex &index, int role) const const=0
virtual bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild)
virtual QHash< int, QByteArray > roleNames() const const
virtual int rowCount(const QModelIndex &parent) const const=0
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
DisplayRole
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.