37 NameRole = Qt::UserRole + 1,
121 Disabled = Qt::Unchecked,
127 EnabledUndeterminded = Qt::PartiallyChecked,
131 Enabled = Qt::Checked
137 QHash<int, QByteArray> roleNames()
const override;
138 QModelIndex index(
int row,
int column,
const QModelIndex &parent = {})
const override;
139 QModelIndex parent(
const QModelIndex &child)
const override;
140 int rowCount(
const QModelIndex &parent = {})
const override;
141 int columnCount(
const QModelIndex &parent = {})
const override;
142 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
143 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole)
override;
152 void updateEffectStatus(
const QModelIndex &rowIndex, Status effectState);
170 void load(LoadOptions options = LoadOptions::None);
187 bool isDefaults()
const;
192 bool needsSave()
const;
197 QModelIndex findByPluginId(
const QString &pluginId)
const;
205 void requestConfigure(
const QModelIndex &index, QWindow *transientParent);
237 bool changed =
false;
248 virtual bool shouldStore(
const EffectData &data)
const;
251 void loadBuiltInEffects(
const KConfigGroup &kwinConfig);
252 void loadJavascriptEffects(
const KConfigGroup &kwinConfig);
253 void loadPluginEffects(
const KConfigGroup &kwinConfig);
255 QList<EffectData> m_effects;
256 QList<EffectData> m_pendingEffects;
257 int m_lastSerial = -1;