Commit 2b24033f authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fixes: Speed up animation time

Details:
The fade-in is a lot faster now, to
prevent things from feeling unresponsive.
parent 6ffd2264
......@@ -462,7 +462,10 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption
QPainter endPainter(&endImage);
drawPrimitive(element, &endOpt, &endPainter, widget);
t->setEndImage(endImage);
t->setDuration(130);
if (oldState & State_MouseOver)
t->setDuration(150);
else
t->setDuration(75);
t->setStartTime(QTime::currentTime());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment