Commit 3257f5f9 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[CurrentContainmentActionsModel] Add configurationChanged signal

This allows the config UI to know when to enable the Apply button.
Currently we only do that when the shortcut or actions themselves change but not their configuration.

Differential Revision: https://phabricator.kde.org/D6443
parent 03b37c94
......@@ -222,6 +222,8 @@ void CurrentContainmentActionsModel::showConfiguration(int row, QQuickItem *ctx)
pluginInstance->configurationAccepted();
});
connect(configDlg, &QDialog::accepted, this, &CurrentContainmentActionsModel::configurationChanged);
connect(pluginInstance, &QObject::destroyed, configDlg, &QDialog::reject);
configDlg->show();
......
......@@ -60,6 +60,9 @@ public:
Q_INVOKABLE void showAbout(int row, QQuickItem *ctx = nullptr);
Q_INVOKABLE void save();
signals:
void configurationChanged();
private:
Plasma::Containment *m_containment;
QHash<QString, Plasma::ContainmentActions *> m_plugins;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment