Bug 111038

Summary: Subject line tooltips try to interpret HTML.
Product: [Applications] kmail Reporter: Michael Pyne <mpyne>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 1.8.90   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: approach to fix the tooltips once kdelibs is fixed
approach to fix the tooltips once kdelibs is fixed

Description Michael Pyne 2005-08-19 00:17:23 UTC
Version:           1.8.90 (using KDE 3.4.90 (alpha1, >= 20050806), compiled sources)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.11.10

I received an email with a subject of

"[PATCH] Making <img style="max-width: 100px" /> work"

and since the list view wasn't wide enough to display the full subject, it popped up a nice tooltip when the mouse pointer hovered over it.

But, the tooltip had a black square where the <img /> part was.  Apparently it doesn't anticipate possible HTML in the subject lines?

Expected behavior: The tooltip should just display the subject line, without interpreting the subject line.
Comment 1 Andreas Gungl 2005-08-19 20:44:02 UTC
Due to a missing part in kdelibs, it's not possible for me to implement a fix before at least KDE 4. AFAICT there is currently no way to intercept the determination of the text to be used in the tooltip.
Comment 2 Andreas Gungl 2005-08-19 20:54:26 UTC
Created attachment 12272 [details]
approach to fix the tooltips once kdelibs is fixed

The patch contains an approach to fix that issue. Howver, currently as of KDE
3.5 the tooltip() method is actually never called and
KListView::Tooltip::maybeTip() contains simply a FIXME. KDE 4 might bring a
solution for that.
Comment 3 Andreas Gungl 2005-08-19 21:09:08 UTC
Created attachment 12273 [details]
approach to fix the tooltips once kdelibs is fixed

The patch contains an approach to fix that issue. Howver, currently as of KDE
3.5 the tooltip() method is actually never called and
KListView::Tooltip::maybeTip() contains simply a FIXME. KDE 4 might bring a
solution for that.
Comment 4 Tom Albers 2005-09-20 19:55:37 UTC
52223 is similar and also contains patch
Comment 5 Andreas Gungl 2005-09-24 20:30:18 UTC
Tom, thanks for the hint. You're right - as always.

I think this issue won't be fixed for the KDE 3 series, however we definitely should take care for that on KDE 4.


*** This bug has been marked as a duplicate of 52223 ***