[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: =?GB2312?B?W1BBVENIXSBCVUcgMTk4MDYxIG1ha2UgdGhlIHRvb2x0aXAgaGlkZSBhdXRvbWF0aWNhbGx5?=
From: "=?GB2312?B?xcvOwMa9?=" <wppan () redflag-linux ! com>
Date: 2009-06-27 13:18:16
Message-ID: 20090627131816.C825F1377B2 () mail ! redflag-linux ! com
[Download RAW message or body]
This is a MIME-formatted message. If you see this text it means that your
mail software cannot handle MIME-formatted messages.
[Attachment #2 (text/html)]
<pre class="bz_comment_text" id="comment_text_2">Hi,<br><br>I find the reason is:<br>when the \
mouse leaves the QGraphicsWidget but still on the taskbar, the taskbar<br>receives a \
QEvent::GraphicsSceneHoverEnter, then the tooltipmanager will call<br>show(widget). And In \
function show(), hideTimer is stopped, and some time later,<br>function showToolTip() will be \
called. But showToolTip returns at line 356<br>because tooltip.value().isEmpty(). <br>Now the \
hideTimer and showTimer are both stopped, so the tooltip will not \
hide<br>automatically.</pre><br>best regards<br><br>pwp<br> <br>
["kdelibs-plasma-hidetooltip.patch" (kdelibs-plasma-hidetooltip.patch)]
Index: tooltipmanager.cpp
===================================================================
--- tooltipmanager.cpp (revision 988140)
+++ tooltipmanager.cpp (working copy)
@@ -353,6 +353,11 @@
QHash<QGraphicsWidget *, ToolTipContent>::const_iterator tooltip = tooltips.constFind(currentWidget);
if (tooltip == tooltips.constEnd() || tooltip.value().isEmpty()) {
+ if (isShown){
+ delayedHide = true;
+ hideTimer->start(250);
+ }
+
return;
}
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic