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:
parent
25a80b322c
commit
0f57196266
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user