Temporarily hide the tooltip when moving it to fix painting corruption

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751523
This commit is contained in:
Jason Stubbs 2007-12-22 03:44:25 +00:00
parent 792e8dfba8
commit 4d641580fa

View File

@ -63,7 +63,11 @@ void ToolTip::show(const QPoint &location, const Plasma::ToolTipData &data)
setData(data);
move(location.x(), location.y() - sizeHint().height());
if (d->isShown) {
setVisible(true); // Don't delay if the tooltip is already shown(i.e. moving from one task to another)
// Don't delay if the tooltip is already shown(i.e. moving from one task to another)
// 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);
}
else {
d->showTimer->start(1000); //Shown after a one second delay.