Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/plugins/folder/previewpluginsmodel.h
Show All 32 Lines | 30 | { | |||
---|---|---|---|---|---|
33 | Q_PROPERTY(QStringList checkedPlugins READ checkedPlugins WRITE setCheckedPlugins NOTIFY checkedPluginsChanged) | 33 | Q_PROPERTY(QStringList checkedPlugins READ checkedPlugins WRITE setCheckedPlugins NOTIFY checkedPluginsChanged) | ||
34 | 34 | | |||
35 | public: | 35 | public: | ||
36 | PreviewPluginsModel(QObject *parent = 0); | 36 | PreviewPluginsModel(QObject *parent = 0); | ||
37 | ~PreviewPluginsModel(); | 37 | ~PreviewPluginsModel(); | ||
38 | 38 | | |||
39 | QHash<int, QByteArray> roleNames() const override; | 39 | QHash<int, QByteArray> roleNames() const override; | ||
40 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; | 40 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; | ||
41 | Q_INVOKABLE void setRowChecked(int row, bool checked); | 41 | bool setData(const QModelIndex &index, const QVariant &value, int role) Q_DECL_OVERRIDE; | ||
42 | 42 | | |||
43 | int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE { Q_UNUSED(parent) return m_plugins.size(); } | 43 | int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE { Q_UNUSED(parent) return m_plugins.size(); } | ||
44 | 44 | | |||
45 | QStringList checkedPlugins() const; | 45 | QStringList checkedPlugins() const; | ||
46 | void setCheckedPlugins(const QStringList &list); | 46 | void setCheckedPlugins(const QStringList &list); | ||
47 | 47 | | |||
48 | Q_SIGNALS: | 48 | Q_SIGNALS: | ||
49 | void checkedPluginsChanged() const; | 49 | void checkedPluginsChanged() const; | ||
Show All 9 Lines |