Fixed Qt 5 compatibility