From 70b12916b29f2fcd2b10df7774420a1f71008752 Mon Sep 17 00:00:00 2001 From: Andre Duffeck Date: Tue, 12 Feb 2008 07:33:07 +0000 Subject: [PATCH] react to changes of Plasma::Theme svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773942 --- applet.cpp | 7 +++++++ applet.h | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/applet.cpp b/applet.cpp index 38523d5fb..d69170b1c 100644 --- a/applet.cpp +++ b/applet.cpp @@ -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" diff --git a/applet.h b/applet.h index 0279c5e08..fbee97996 100644 --- a/applet.h +++ b/applet.h @@ -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