Added setRange calls. Changed min max call to qMin qMax.
Added range extend method.
Change range extend to work on measures too.
Merge pull request #945 from BartlomiejLewandowski/selection-refactor-range

Selection refactor range