17 #ifndef UNITY_SHELL_SCOPES_SETTINGSMODELINTERFACE_H
18 #define UNITY_SHELL_SCOPES_SETTINGSMODELINTERFACE_H
20 #include <unity/SymbolExport.h>
22 #include <QAbstractListModel>
40 Q_PROPERTY(
int count READ count NOTIFY countChanged)
45 : QAbstractListModel(parent)
53 virtual int count()
const = 0;
68 QHash<int, QByteArray> roleNames()
const override
70 QHash<int, QByteArray> roles;
71 roles[RoleSettingId] =
"settingId";
72 roles[RoleDisplayName] =
"displayName";
73 roles[RoleType] =
"type";
74 roles[RoleProperties] =
"properties";
75 roles[RoleValue] =
"value";
Definition: SettingsModelInterface.h:31
Top-level namespace for all things Unity-related.
Definition: Version.h:37
Roles
The roles supported by this model.
Definition: SettingsModelInterface.h:58