react to changes of Plasma::Theme
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773942
This commit is contained in:
parent
c42f0593ba
commit
70b12916b2
@ -167,6 +167,8 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
applet->setDrawStandardBackground(true);
|
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
|
// 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;
|
return d->isContainment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Applet::themeChanged()
|
||||||
|
{
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
} // Plasma namespace
|
} // Plasma namespace
|
||||||
|
|
||||||
#include "applet.moc"
|
#include "applet.moc"
|
||||||
|
5
applet.h
5
applet.h
@ -676,6 +676,11 @@ class PLASMA_EXPORT Applet : public Widget
|
|||||||
*/
|
*/
|
||||||
void launchActivated();
|
void launchActivated();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* called when the Plasma::Theme has changed
|
||||||
|
*/
|
||||||
|
void themeChanged();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* Called when a request to save the state of the applet is made
|
* Called when a request to save the state of the applet is made
|
||||||
|
Loading…
x
Reference in New Issue
Block a user