My guess is that having a BA flight BOS-LHR and a BA codeshare QF flight LHR, they propably are on the same ticket.
Connections between terminals has in recent years been much more effective, the time frame you mention will pose no problems. Even if you're travelling on two tickets, BA in BOS will check your luggage through to SIN