Compatibility with Qt4 for test cases