BA 1441 then BA 482 at Heathrow
Edinburgh → London → Barcelona
Timetable, London time
11:35BA 1441 from Edinburgh at the gate
11:25BA 482 to Barcelona leaves the gate
23 h 50 apart on the timetable, overnight
BA 482 leaves 23 h 50 after BA 1441 arrives on the timetable: more than half a day, so not a connection we count.