Leicester edged closer to the Sky Bet Championship title with a hard-fought 1-0 victory over QPR at the King Power Stadium.