<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _update_selection(self, qindex1, qindex2):
 """ select the given range by qmodel indices """

        m = self.model()
        self._do_select(m.qindex2index(qindex1), m.qindex2index(qindex2))