Commit e5e0e91d authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[CurrentContainmentActionsModel] Allow making the action about dialog modal

This adjusts the "configure" dialog in the same way as the "about" dialog I fixed in 2f66c0d1

Differential Revision:
parent 1aa20447
......@@ -181,7 +181,7 @@ void CurrentContainmentActionsModel::remove(int row)
void CurrentContainmentActionsModel::showConfiguration(int row)
void CurrentContainmentActionsModel::showConfiguration(int row, QQuickItem *ctx)
const QString action = itemData(index(row, 0)).value(ActionRole).toString();
......@@ -193,7 +193,11 @@ void CurrentContainmentActionsModel::showConfiguration(int row)
QLayout *lay = new QVBoxLayout(configDlg);
if (ctx && ctx->window()) {
configDlg->winId(); // so it creates the windowHandle();
Plasma::ContainmentActions *pluginInstance = m_plugins[action];
//put the config in the dialog
......@@ -56,7 +56,7 @@ public:
Q_INVOKABLE bool append(const QString &action, const QString &plugin);
Q_INVOKABLE void update(int row, const QString &action, const QString &plugin);
Q_INVOKABLE void remove(int row);
Q_INVOKABLE void showConfiguration(int row);
Q_INVOKABLE void showConfiguration(int row, QQuickItem *ctx = nullptr);
Q_INVOKABLE void showAbout(int row, QQuickItem *ctx = nullptr);
Q_INVOKABLE void save();
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