From kde-panel-devel Sun Mar 30 19:57:02 2008 From: "Aaron J. Seigo" Date: Sun, 30 Mar 2008 19:57:02 +0000 To: kde-panel-devel Subject: Re: How to check if tooltip is visible (digital clock)? Message-Id: <200803301357.02825.aseigo () kde ! org> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=120690669230817 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1499287860==" --===============1499287860== Content-Type: multipart/signed; boundary="nextPart3613906.mE4EETSChF"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart3613906.mE4EETSChF Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 30 March 2008, Rafa=C5=82 Mi=C5=82ecki wrote: > 1) I can intercept event(..) and detect QEvent::ToolTip > (isToolTipDisplayed=3Dtrue) and QEvent::HoverLeave > (isToolTipDisplayed=3Dfalse). this is likely to break. e.g. we hide the tooltip on mouse click as well. > 2) I can use already prepared updateToolTip() > (isToolTipDisplayed=3Dtrue) 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= =20 bit "ugly" but prevent bloating the applet API even further. it would be=20 called with updateToolTip(true) when it's shown, etc and updateToolTip(fals= e)=20 when it is hidden. =2D-=20 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 --nextPart3613906.mE4EETSChF Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQBH7/CO1rcusafx20MRAoP2AKCX1uRz0/M1mfA+nu1dbBzaE5bFJACfeUR8 HxedfFXqa9yABhdvIqsMQ38= =X6og -----END PGP SIGNATURE----- --nextPart3613906.mE4EETSChF-- --===============1499287860== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Panel-devel mailing list Panel-devel@kde.org https://mail.kde.org/mailman/listinfo/panel-devel --===============1499287860==--