ensure a minimum delay of 200ms for tooltips newly shown, respect that the default is an int not float

This commit is contained in:
Aaron Seigo 2012-01-27 15:09:54 +01:00
parent 1de227bbba
commit 6018fc0c35

View File

@ -159,7 +159,7 @@ void ToolTipManager::show(QGraphicsWidget *widget)
// which can be too much for less powerful CPUs to keep up with // which can be too much for less powerful CPUs to keep up with
d->showTimer->start(200); d->showTimer->start(200);
} else { } else {
d->showTimer->start(delay * 1000); d->showTimer->start(qMax(qreal(200), delay));
} }
} }