Start of some tests for qt4 clipboard.
Improved format detection.