get rid of containmentActions::config()

This commit is contained in:
Marco Martin 2013-08-27 12:10:51 +02:00
parent 409b38a1e5
commit 39b49bf464
3 changed files with 2 additions and 18 deletions

View File

@ -77,17 +77,6 @@ Containment *ContainmentActions::containment()
return qobject_cast<Containment*>(parent()); return qobject_cast<Containment*>(parent());
} }
KConfigGroup ContainmentActions::config() const
{
KConfigGroup cfg;
if (!d->containment) {
return cfg;
}
cfg = KConfigGroup(d->containment->corona()->config(), "ActionPlugins");
return KConfigGroup(&cfg, QString::number(d->containment->containmentType()));
}
void ContainmentActions::restore(const KConfigGroup &config) void ContainmentActions::restore(const KConfigGroup &config)
{ {
Q_UNUSED(config); Q_UNUSED(config);

View File

@ -70,12 +70,6 @@ class PLASMA_EXPORT ContainmentActions : public QObject
*/ */
KPluginInfo pluginInfo() const; KPluginInfo pluginInfo() const;
/**
* Returns the configurations of this containmentactions
* @since 5.0
*/
KConfigGroup config() const;
/** /**
* This method should be called once the plugin is loaded or settings are changed. * This method should be called once the plugin is loaded or settings are changed.
* @param config Config group to load settings * @param config Config group to load settings

View File

@ -365,7 +365,8 @@ void ContainmentInterface::addContainmentActions(QMenu &desktopMenu, QEvent *eve
plugin->setContainment(containment()); plugin->setContainment(containment());
// now configure it // now configure it
KConfigGroup cfg = plugin->config(); KConfigGroup cfg(containment()->corona()->config(), "ActionPlugins");
cfg = KConfigGroup(&cfg, QString::number(containment()->containmentType()));
KConfigGroup pluginConfig = KConfigGroup(&cfg, trigger); KConfigGroup pluginConfig = KConfigGroup(&cfg, trigger);
plugin->restore(pluginConfig); plugin->restore(pluginConfig);
} }