* 150ms delay for already shown tooltips, just as we did with kicker, to prevent overwhelming lower end cpus (or network connections, for that matter)
* 500ms delay for new tooltips up from 300ms which worked rather nicely in kicker as well (trying to learn from kicker, not forget it ;) svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757827
This commit is contained in:
parent
83844b66a2
commit
658f0c4bb3
@ -83,9 +83,12 @@ void ToolTip::show(const QPoint &location, Plasma::Widget *widget)
|
||||
// Qt doesn't seem to like visible tooltips moving though, so hide it and then
|
||||
// immediately show it again
|
||||
setVisible(false);
|
||||
d->showTimer->start(0);
|
||||
|
||||
// small delay to prevent unecessary showing when the mouse is moving quickly across items
|
||||
// which can be too much for less powerful CPUs to keep up with
|
||||
d->showTimer->start(150);
|
||||
} else {
|
||||
d->showTimer->start(300); //Shown after 300ms delay.
|
||||
d->showTimer->start(500);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user