kcmkwin/scripts: make default button work
Reviewers: ervin, #kwin, crossi, hchain, bport, zzag Reviewed By: #kwin, zzag Subscribers: zzag, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D28019
This commit is contained in:
parent
40ebb4e245
commit
a97d4e0999
1 changed files with 3 additions and 3 deletions
|
@ -65,8 +65,9 @@ Module::Module(QWidget *parent, const QVariantList &args) :
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(ui->scriptSelector, SIGNAL(changed(bool)), this, SLOT(changed()));
|
connect(ui->scriptSelector, &KPluginSelector::changed, this, qOverload<bool>(&KCModule::changed));
|
||||||
connect(ui->importScriptButton, SIGNAL(clicked()), SLOT(importScript()));
|
connect(ui->scriptSelector, &KPluginSelector::defaulted, this, qOverload<bool>(&KCModule::defaulted));
|
||||||
|
connect(ui->importScriptButton, &QPushButton::clicked, this, &Module::importScript);
|
||||||
|
|
||||||
updateListViewContents();
|
updateListViewContents();
|
||||||
}
|
}
|
||||||
|
@ -140,7 +141,6 @@ void Module::updateListViewContents()
|
||||||
void Module::defaults()
|
void Module::defaults()
|
||||||
{
|
{
|
||||||
ui->scriptSelector->defaults();
|
ui->scriptSelector->defaults();
|
||||||
emit changed(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Module::load()
|
void Module::load()
|
||||||
|
|
Loading…
Reference in a new issue