HELP: how do I show a declaration tooltip

Milian Wolff mail at milianw.de
Thu Aug 27 16:41:47 UTC 2009


What is the preferred way to show a declaration tooltip?

I put my hopes on DUChain::self()->emitDeclarationSelected() but the 
contextbrowser requires views and does a lot stuff internally...

Essentially I just want to create a tooltip a bit below the cursor 
position. Actually I want to fix 
https://bugs.kde.org/show_bug.cgi?id=189966 , i.e. show the tooltip when 
a user hovers an entry which resembles a declaration in the classbrowser.

You find my current approach attached, but sadly it doesn't show 
anything :( The signals and such stuff is properly delegated so I think 
something in the contextbrowser is messing up... Isn't there a simpler 
way to show the tooltip?
-- 
Milian Wolff
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: classbrowser_decl_tooltip.patch
Type: text/x-diff
Size: 3172 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20090827/eb434f28/attachment.bin>


More information about the KDevelop-devel mailing list