update applet margins when the theme changes

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=812116
This commit is contained in:
Marco Martin 2008-05-24 15:58:40 +00:00
parent d01cb72c4d
commit fb80af2962

View File

@ -1588,6 +1588,14 @@ void Applet::Private::checkImmutability()
void Applet::Private::themeChanged()
{
if (background) {
qreal left;
qreal right;
qreal top;
qreal bottom;
background->getMargins(left, top, right, bottom);
q->setContentsMargins(left, right, top, bottom);
}
q->update();
}