optimize animation

Change-Id: Icfeca57e893045e0425a62ba859864abb5ddf98c
This commit is contained in:
石博文 2016-09-20 17:22:18 +08:00
parent 6fd0caa02d
commit a5b04f7db1
Notes: Deepin Code Review 2016-09-20 17:26:43 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Tue, 20 Sep 2016 17:26:43 +0800
Reviewed-on: https://cr.deepin.io/16206
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -217,9 +217,9 @@ void AppItem::paintEvent(QPaintEvent *e)
if (launching)
{
const double power = 3.0;
const double multiple = 1.05;
const double multiple = 1.25;
const double offset = std::pow(std::sin(m_launchingEffects) * multiple, power);
m_launchingEffects += 0.0006;
m_launchingEffects += 0.0008;
switch (DockPosition)
{