[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
|
//setup the UI
|
||||||
QDialog dialog;
|
QDialog dialog;
|
||||||
|
dialog.setWindowTitle(title);
|
||||||
|
|
||||||
// create the KCModule through the plugintrader
|
// create the KCModule through the plugintrader
|
||||||
KCModule *kcm = nullptr;
|
KCModule *kcm = nullptr;
|
||||||
|
|
|
@ -36,7 +36,7 @@ public:
|
||||||
explicit EffectConfig(QObject *parent = 0);
|
explicit EffectConfig(QObject *parent = 0);
|
||||||
QString serviceName(const QString &serviceName);
|
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_INVOKABLE void openGHNS();
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
|
|
|
@ -143,7 +143,7 @@ Rectangle {
|
||||||
enabled: effectStatusCheckBox.checked
|
enabled: effectStatusCheckBox.checked
|
||||||
iconName: "configure"
|
iconName: "configure"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
effectConfig.openConfig(model.ServiceNameRole, model.ScriptedRole);
|
effectConfig.openConfig(model.ServiceNameRole, model.ScriptedRole, model.NameRole);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue