this works better when the size of the containment is 0 or some other nonesense

svn path=/trunk/KDE/kdelibs/; revision=1120900
This commit is contained in:
Aaron J. Seigo 2010-04-30 02:10:55 +00:00
parent 1b7f06d209
commit 839204b6ea

View File

@ -2347,11 +2347,10 @@ QPointF ContainmentPrivate::preferredPos(Corona *corona) const
return preferredPanelPos(corona);
}
int width = q->size().width();
QPointF pos(0, 0);
QTransform t;
while (corona->itemAt(pos, t)) {
pos.setX(pos.x() + width);
while (QGraphicsItem *i = corona->itemAt(pos, t)) {
pos.setX(i->scenePos().x() + i->boundingRect().width() + 10);
}
//kDebug() << "not a panel, put it at" << pos;