Coding style

SVN_SILENT

svn path=/trunk/KDE/kdebase/workspace/; revision=1046510
This commit is contained in:
Martin Gräßlin 2009-11-08 22:27:37 +00:00
parent 88c7f69708
commit a821ffe7c4

View file

@ -563,35 +563,35 @@ int AuroraeClient::layoutMetric(LayoutMetric lm, bool respectWindowState,
AuroraeFactory::instance()->frame()->getMargins(left, top, right, bottom); AuroraeFactory::instance()->frame()->getMargins(left, top, right, bottom);
int borderLeft, borderRight, borderBottom;; int borderLeft, borderRight, borderBottom;;
switch (KDecoration::options()->preferredBorderSize(AuroraeFactory::instance())) { switch (KDecoration::options()->preferredBorderSize(AuroraeFactory::instance())) {
case BorderTiny: case BorderTiny:
if (compositingActive()) { if (compositingActive()) {
borderLeft = qMin(0, (int)left - conf.borderLeft() - conf.paddingLeft()); borderLeft = qMin(0, (int)left - conf.borderLeft() - conf.paddingLeft());
borderRight = qMin(0, (int)right - conf.borderRight() - conf.paddingRight()); borderRight = qMin(0, (int)right - conf.borderRight() - conf.paddingRight());
borderBottom = qMin(0, (int)bottom - conf.borderBottom() - conf.paddingBottom()); borderBottom = qMin(0, (int)bottom - conf.borderBottom() - conf.paddingBottom());
} else { } else {
borderLeft = qMin(0, (int)left - conf.borderLeft()); borderLeft = qMin(0, (int)left - conf.borderLeft());
borderRight = qMin(0, (int)right - conf.borderRight()); borderRight = qMin(0, (int)right - conf.borderRight());
borderBottom = qMin(0, (int)bottom - conf.borderBottom()); borderBottom = qMin(0, (int)bottom - conf.borderBottom());
} }
break; break;
case BorderLarge: case BorderLarge:
borderLeft = borderRight = borderBottom = 4; borderLeft = borderRight = borderBottom = 4;
break; break;
case BorderVeryLarge: case BorderVeryLarge:
borderLeft = borderRight = borderBottom = 8; borderLeft = borderRight = borderBottom = 8;
break; break;
case BorderHuge: case BorderHuge:
borderLeft = borderRight = borderBottom = 12; borderLeft = borderRight = borderBottom = 12;
break; break;
case BorderVeryHuge: case BorderVeryHuge:
borderLeft = borderRight = borderBottom = 23; borderLeft = borderRight = borderBottom = 23;
break; break;
case BorderOversized: case BorderOversized:
borderLeft = borderRight = borderBottom = 36; borderLeft = borderRight = borderBottom = 36;
break; break;
case BorderNormal: case BorderNormal:
default: default:
borderLeft = borderRight = borderBottom = 0; borderLeft = borderRight = borderBottom = 0;
} }
switch (lm) { switch (lm) {
case LM_BorderLeft: case LM_BorderLeft: