Qt 4.2 compatibility
Bug fixes