do not do the appear animation when dropping an extender item

svn path=/trunk/KDE/kdelibs/; revision=1181208
This commit is contained in:
Giulio Camuffo 2010-09-30 12:47:45 +00:00
parent 25d9f45583
commit 37c3cf4d1c

View File

@ -1262,7 +1262,14 @@ void ContainmentPrivate::dropData(QPointF scenePos, QPoint screenPos, QGraphicsS
applet->setPos(geometry.topLeft() - QPointF(int(left), int(top)));
applet->show();
} else {
applet = q->addApplet("internal:extender", QVariantList(), geometry);
applet = addApplet("internal:extender", QVariantList(), geometry, 0, true);
applet->hide();
applet->init();
appletAppeared(applet);
applet->flushPendingConstraintsEvents();
applet->d->scheduleModificationNotification();
applet->adjustSize();
applet->show();
}
item->setExtender(applet->extender());
}