implement a default configChanged() for Containment that reloads the wallpaper

svn path=/trunk/KDE/kdelibs/; revision=1185912
This commit is contained in:
Aaron J. Seigo 2010-10-14 15:46:05 +00:00
parent 83fba085c0
commit 8dcc569fba
2 changed files with 18 additions and 0 deletions

View File

@ -2079,6 +2079,17 @@ void Containment::showConfigurationInterface()
Applet::showConfigurationInterface();
}
void Containment::configChanged()
{
if (d->drawWallpaper) {
KConfigGroup group = config();
setWallpaper(group.readEntry("wallpaperplugin", defaultWallpaper),
group.readEntry("wallpaperpluginmode", defaultWallpaperMode));
}
Applet::configChanged();
}
void ContainmentPrivate::requestConfiguration()
{
emit q->configureRequested(q);

View File

@ -527,6 +527,13 @@ class PLASMA_EXPORT Containment : public Applet
*/
void showConfigurationInterface();
/**
* Called when applet configuration values have changed.
* @reimp
* @sa Applet::configChanged()
*/
void configChanged();
protected:
/**
* Sets the type of this containment.