[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
wilder-5.14
Kai Uwe Broulik 9 years ago
parent 03b37c94bd
commit 3257f5f923
  1. 2
      shell/currentcontainmentactionsmodel.cpp
  2. 3
      shell/currentcontainmentactionsmodel.h

@ -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;

Loading…
Cancel
Save