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:
parent
792e8dfba8
commit
4d641580fa
@ -63,7 +63,11 @@ void ToolTip::show(const QPoint &location, const Plasma::ToolTipData &data)
|
|||||||
setData(data);
|
setData(data);
|
||||||
move(location.x(), location.y() - sizeHint().height());
|
move(location.x(), location.y() - sizeHint().height());
|
||||||
if (d->isShown) {
|
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 {
|
else {
|
||||||
d->showTimer->start(1000); //Shown after a one second delay.
|
d->showTimer->start(1000); //Shown after a one second delay.
|
||||||
|
Loading…
Reference in New Issue
Block a user