ariya/phantomjs — pull request #225 by detro (2012-03-22 18:19:44+00:00)
Title: Second attempt to solve Issue 439.

[Issue 439](http://code.google.com/p/phantomjs/issues/detail?id=439).
This works for all kind of "Content Body" but with raw bytes: the issue is that QtWebKit doesn't know how to convert a "QByteArray" to a "QVariant" (to inject it in the JavaScript space), resulting in a malformed conversion (somehow it decides to create a map where byte position is the 'key' and the byte at that position is the 'value').

This fix covers most scenarios (hopefully) but we are blocked on solving it completely.

In this pull request there is an "extra" tiny commit that sorts out our use of "QT_NO_DEBUG_OUTPUT" and "QT_NO_WARNING_OUTPUT". Apology for the "mixture" but was too small to go anywhere else.