avoid calling getMargins twice when not necessary
svn path=/trunk/KDE/kdelibs/; revision=979113
This commit is contained in:
parent
921f3a436b
commit
8a4dc5460d
@ -105,13 +105,14 @@ void DialogPrivate::themeChanged()
|
||||
qreal rightWidth;
|
||||
qreal bottomHeight;
|
||||
|
||||
background->getMargins(leftWidth, topHeight, rightWidth, bottomHeight);
|
||||
//kDebug() << leftWidth << topHeight << rightWidth << bottomHeight;
|
||||
|
||||
FrameSvg::EnabledBorders borders = FrameSvg::AllBorders;
|
||||
|
||||
Extender *extender = qobject_cast<Extender*>(graphicsWidget);
|
||||
if (extender) {
|
||||
background->getMargins(leftWidth, topHeight, rightWidth, bottomHeight);
|
||||
|
||||
switch (extender->d->applet->location()) {
|
||||
case BottomEdge:
|
||||
borders ^= FrameSvg::BottomBorder;
|
||||
|
Loading…
Reference in New Issue
Block a user