don't bother animating the items on start up (delayedInit) since we never see the anims anyways so it's just a bunch of unecessary computation at launch.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742409
This commit is contained in:
Aaron J. Seigo 2007-11-27 23:19:02 +00:00
parent dc57fc5c19
commit dee3a63add

View File

@ -388,12 +388,13 @@ Applet* Containment::addApplet(const QString& name, const QVariantList& args, ui
kDebug() << applet->name() << "sizehint:" << applet->sizeHint()
<< "geometry:" << applet->geometry();
if (!delayInit) {
if (delayInit) {
applet->installSceneEventFilter(this);
} else {
applet->init();
Phase::self()->animateItem(applet, Phase::Appear);
}
Phase::self()->animateItem(applet, Phase::Appear);
emit appletAdded(applet);
return applet;
}