react to changes of Plasma::Theme

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773942
This commit is contained in:
Andre Duffeck 2008-02-12 07:33:07 +00:00
parent c42f0593ba
commit 70b12916b2
2 changed files with 12 additions and 0 deletions

View File

@ -167,6 +167,8 @@ public:
}
}
applet->setDrawStandardBackground(true);
connect(Plasma::Theme::self(), SIGNAL(changed()), applet, SLOT(themeChanged()));
}
// put all setup routines for script here. at this point we can assume that
@ -1387,6 +1389,11 @@ bool Applet::isContainment() const
return d->isContainment;
}
void Applet::themeChanged()
{
update();
}
} // Plasma namespace
#include "applet.moc"

View File

@ -676,6 +676,11 @@ class PLASMA_EXPORT Applet : public Widget
*/
void launchActivated();
/**
* called when the Plasma::Theme has changed
*/
void themeChanged();
protected:
/**
* Called when a request to save the state of the applet is made