when tooltip content changes, reset the timer. allows one to see tooltips for all their desktops in the pager, for example

svn path=/trunk/KDE/kdelibs/; revision=901885
This commit is contained in:
Aaron J. Seigo 2008-12-26 20:43:53 +00:00
parent a98e4c82b2
commit 72af656f0f

View File

@ -207,6 +207,14 @@ void ToolTipManager::setContent(QGraphicsWidget *widget, const ToolTipContent &d
if (d->currentWidget == widget) {
if (data.isEmpty()) {
hide(widget);
} else {
d->delayedHide = data.autohide();
if (d->delayedHide) {
//kDebug() << "starting authoide";
d->hideTimer->start(3000);
} else {
d->hideTimer->stop();
}
}
d->tipWidget->setContent(widget, data);
@ -330,6 +338,8 @@ void ToolTipManagerPrivate::showToolTip()
if (delayedHide) {
//kDebug() << "starting authoide";
hideTimer->start(3000);
} else {
hideTimer->stop();
}
}