Fix for Qt 5 porting