Plasma.ToolTipManager and Plasma.Applet

Thomas Olsen tanghus at gmail.com
Thu Oct 14 16:12:03 CEST 2010


On Thursday 14 October 2010 14:53:50 Luca Beltrame wrote:
> In data giovedì 14 ottobre 2010 13:17:35, Thomas Olsen ha scritto:
> >     Plasma.ToolTipManager.self().setContent(self, data)
> 
> Extra reply because I think I wasn't clear enough. Instead of the quoted
> statement, try using:
> 
> Plasma.ToolTipManager.self().setContent(self.applet, data)
> 
> I think someone stumbled upon this on IRC a while ago and I helped him out:
> from memory, this was the suggestion.

You were clear enough :-) And it - kind of - worked as in the tooltip gets 
registered but the popup doesn't show. I can see that the 
Plasma::PopupApplet::toolTipAboutToShow() method is called but nothing 
happens. As far as I can see from the docs and the behavior of other Plasmoids 
it is not mandatory to implement but perhaps it is in Python Plasmoids.
I will have to tinker a bit with it but thanks a lot for leading me in the 
right direction. Should have thought of it myself but isn't it always like 
that? ;-)

BTW: I also tried to add:

	Plasma.ToolTipManager.self().registerWidget(self.applet)

but it didn't make any difference - as it shouldn't AFAICT.

-- 
Best regards / med venlig hilsen

Thomas Olsen

Dropbox and my thumb drive had an epic battle. Dropbox won. 
http://db.tt/T0p6d6L
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20101014/873f531b/attachment.sig 


More information about the Plasma-devel mailing list