Changeset View
Changeset View
Standalone View
Standalone View
src/alternativesmodel.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
53 | 53 | | |||
54 | /** | 54 | /** | ||
55 | * Provides a list of plugin names to have filtered out | 55 | * Provides a list of plugin names to have filtered out | ||
56 | */ | 56 | */ | ||
57 | Q_PROPERTY(QStringList disabledPlugins READ disabledPlugins WRITE setDisabledPlugins NOTIFY disabledPluginsChanged) | 57 | Q_PROPERTY(QStringList disabledPlugins READ disabledPlugins WRITE setDisabledPlugins NOTIFY disabledPluginsChanged) | ||
58 | public: | 58 | public: | ||
59 | enum Roles { | 59 | enum Roles { | ||
60 | PluginIdRole = Qt::UserRole+1, | 60 | PluginIdRole = Qt::UserRole+1, | ||
61 | IconNameRole | 61 | IconNameRole, | ||
62 | ActionDisplayRole | ||||
62 | }; | 63 | }; | ||
63 | 64 | | |||
64 | explicit AlternativesModel(QObject* parent = nullptr); | 65 | explicit AlternativesModel(QObject* parent = nullptr); | ||
65 | ~AlternativesModel() override; | 66 | ~AlternativesModel() override; | ||
66 | 67 | | |||
67 | QJsonObject inputData() const; | 68 | QJsonObject inputData() const; | ||
68 | void setInputData(const QJsonObject& input); | 69 | void setInputData(const QJsonObject& input); | ||
69 | 70 | | |||
Show All 35 Lines |