update applet margins when the theme changes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=812116
This commit is contained in:
parent
d01cb72c4d
commit
fb80af2962
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user