Livingston defender Coll Donaldson has agreed terms over a move to Sky Bet Championship high-fliers Queens Park Rangers.