forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user