[kcmkwin/compositing] Use Effect name as configuration window title
REVIEW: 118632
This commit is contained in:
parent
8919cd5f54
commit
ed747d82ab
3 changed files with 4 additions and 3 deletions
|
@ -43,10 +43,11 @@ EffectConfig::EffectConfig(QObject *parent)
|
|||
{
|
||||
}
|
||||
|
||||
void EffectConfig::openConfig(const QString &serviceName, bool scripted)
|
||||
void EffectConfig::openConfig(const QString &serviceName, bool scripted, const QString &title)
|
||||
{
|
||||
//setup the UI
|
||||
QDialog dialog;
|
||||
dialog.setWindowTitle(title);
|
||||
|
||||
// create the KCModule through the plugintrader
|
||||
KCModule *kcm = nullptr;
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
explicit EffectConfig(QObject *parent = 0);
|
||||
QString serviceName(const QString &serviceName);
|
||||
|
||||
Q_INVOKABLE void openConfig(const QString &effectName, bool scripted);
|
||||
Q_INVOKABLE void openConfig(const QString &effectName, bool scripted, const QString &title);
|
||||
Q_INVOKABLE void openGHNS();
|
||||
|
||||
Q_SIGNALS:
|
||||
|
|
|
@ -143,7 +143,7 @@ Rectangle {
|
|||
enabled: effectStatusCheckBox.checked
|
||||
iconName: "configure"
|
||||
onClicked: {
|
||||
effectConfig.openConfig(model.ServiceNameRole, model.ScriptedRole);
|
||||
effectConfig.openConfig(model.ServiceNameRole, model.ScriptedRole, model.NameRole);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue