implement a default configChanged() for Containment that reloads the wallpaper
svn path=/trunk/KDE/kdelibs/; revision=1185912
This commit is contained in:
parent
83fba085c0
commit
8dcc569fba
@ -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);
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user