def METHOD_NAME(self, start: int, end: int):
    if start == end:
        return
    x_factor = self.view_rect().width() / (end - start)
    self.zoom(x_factor, zoom_to_mouse_cursor=False)
    self.centerOn(start + (end - start) / 2, self.y_center)