PlasmaQuick::ConfigModel Class
| Header: | #include <ConfigModel> |
| CMake: | find_package(PlasmaQuick REQUIRED)target_link_libraries(mytarget PRIVATE Plasma::PlasmaQuick) |
| Inherits: | QAbstractListModel |
Public Functions
| void | appendCategory(const QString &iconName, const QString &name, const QString &path, const QString &pluginName) |
| QQmlListProperty<PlasmaQuick::ConfigCategory> | categories() |
| void | clear() |
| int | count() |
| QVariant | get(int row) const |
Signals
| void | countChanged() |
Detailed Description
This model contains all the possible config categories for a dialog, such as categories of the config dialog for an Applet TODO: it should probably become an import instead of a library?
Import Statement:
import org.kde.plasma.configuration
Member Function Documentation
void ConfigModel::appendCategory(const QString &iconName, const QString &name, const QString &path, const QString &pluginName)
Add a new category in the model.
ConfigCategory the new category
QQmlListProperty<PlasmaQuick::ConfigCategory> ConfigModel::categories()
Returns the categories of the model
Note: Getter function for property categories.
void ConfigModel::clear()
clears the model
[invokable] QVariant ConfigModel::get(int row) const
row The row for which the data will be returned
Returns the data of the specified row
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.