Use QString::leftRef() over left() if not needing the final string

Authored by kossebau on Aug 16 2018, 11:57 PM.