use Templates.RangeSlider to not crash
at this point, the parent control is not really an instance of Controls.RangeSlider but rather Templates.RangeSlider. checking for Controls.RangeSlider crashes for a Qt bug but changing to Templates fixes the crash
(cherry picked from commit 9646ca04)