[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: How to check if tooltip is visible (digital clock)?
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2008-03-30 19:57:02
Message-ID: 200803301357.02825.aseigo () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Sunday 30 March 2008, Rafał Miłecki wrote:
> 1) I can intercept event(..) and detect QEvent::ToolTip
> (isToolTipDisplayed=true) and QEvent::HoverLeave
> (isToolTipDisplayed=false).
this is likely to break. e.g. we hide the tooltip on mouse click as well.
> 2) I can use already prepared updateToolTip()
> (isToolTipDisplayed=true) which allows me not filtering events in
> event(). But I can't get know that tooltip disappeared so I don't know
> when to change isToolTipDisplayed to false.
>
> Is the first solution good enought to use for such a important part of
> KDE as digital clock (nearly everyone use it!)? Should we implement
> sth similar to updateToolTip(), let's say: toolTipRemoved()? Or maybe
> someone has better idea?
how about change updateToolTip() to upateToolTip(bool update). yes, it's a
bit "ugly" but prevent bloating the applet API even further. it would be
called with updateToolTip(true) when it's shown, etc and updateToolTip(false)
when it is hidden.
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Trolltech
["signature.asc" (application/pgp-signature)]
_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic