added helper class for setting override cursor

Summary:
added helper class for setting override cursor

 * and restoring it in destructor

Test Plan: good to have

Reviewers: #diana, lisbethb

Reviewed By: #diana, lisbethb

Differential Revision: https://phab.met.no/D59