get rid of containmentActions::config()
This commit is contained in:
parent
409b38a1e5
commit
39b49bf464
@ -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);
|
||||||
|
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user