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:
parent
dc57fc5c19
commit
dee3a63add
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user