Fixes: Speed up animation time

Details:
The fade-in is a lot faster now, to
prevent things from feeling unresponsive.
This commit is contained in:
Jens Bache-Wiig
2009-07-20 18:56:50 +02:00
parent 6ffd22649e
commit 2b24033f14

View File

@@ -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());
}
}