Insert new extender items at the top of the extender, if the extender is located in a popup at the bottom of the screen.

svn path=/trunk/KDE/kdelibs/; revision=938706
This commit is contained in:
Rob Scheepmaker 2009-03-12 18:45:45 +00:00
parent 25a80b322c
commit 0f57196266

View File

@ -328,7 +328,11 @@ void Extender::dropEvent(QGraphicsSceneDragDropEvent *event)
void Extender::itemAddedEvent(ExtenderItem *item, const QPointF &pos)
{
if (pos == QPointF(-1, -1)) {
d->layout->addItem(item);
if (appearance() == BottomUpStacked) {
d->layout->insertItem(0, item);
} else {
d->layout->addItem(item);
}
} else {
d->layout->insertItem(d->insertIndexFromPos(pos), item);
}