Mailody now uses WebKit
After Akademy I decided that Webkit is a thing to explore more. The presentation and demonstration of Simon Hausmann at Akademy was very impressive. Not only by the capabilities QtWebKit, but also by the way the way they are working.
So, I decided to switch from KHTMLPart for displaying the messages to QWebView. Not everyone knows that even plain text messages are converted to HTML messages before they are shown. This is needed to make links clickable for example. KMail does that too btw. But of course simple text messages converted to html render perfectly in almost any html-rendering-engine.
The port to QtWebKit went pretty smoothly, although there are one or two small problems left. The rendering for most of my testcases / messages seems pretty much identical. Although I found some mails that look that much better now, for example:
[img_assist|nid=242|title=HTMLPart|desc=|link=node|align=center|width=100|height=51]
[img_assist|nid=243|title=QWebView|desc=|link=node|align=center|width=100|height=59]
But I don’t hold KHTMLPart responsible for that, html mails send by some clients are ugly and made without any kind of specs in mind. btw, while debugging I used the Arora browser, that’s actually a very nice browser.
Why is KHTML showing the text aligned to the right? That’s not a good thing.
I would guess it’s an error in the HTML. There is right-aligned text at the top and I guess the main table and all its entries inherit the alignment property in KHTML. Probably following the standard though.