swap the magic number for a constant

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873689
This commit is contained in:
Aaron J. Seigo 2008-10-19 23:21:03 +00:00
parent 25da9776f7
commit 3fb4975896
2 changed files with 2 additions and 2 deletions

View File

@ -1796,8 +1796,7 @@ void ContainmentPrivate::positionContainment()
}
}
//this magic number (4) is the number of columns to try before going to the next row
width = (width + INTER_CONTAINMENT_MARGIN) * 4;
width = (width + INTER_CONTAINMENT_MARGIN) * CONTAINMENT_COLUMNS;
height += INTER_CONTAINMENT_MARGIN;
// a mildly naive "find the first slot" approach

View File

@ -22,6 +22,7 @@
#define CONTAINMENT_P_H
static const int INTER_CONTAINMENT_MARGIN = 6;
static const int CONTAINMENT_COLUMNS = 4;
static const int VERTICAL_STACKING_OFFSET = 10000;
namespace Plasma