Selects the View given indexes.

        :param view: View.
        :type view: QWidget
        :param indexes: Indexes to select.
        :type indexes: list
        :param flags: Selection flags. ( QItemSelectionModel.SelectionFlags )
        :return: Definition success.
        :rtype: bool

def select_view_indexes(self, indexes, flags=QItemSelectionModel.Select | QItemSelectionModel.Rows):
        """
        Selects the View given indexes.

        :param view: View.
        :type view: QWidget
        :param indexes: Indexes to select.
        :type indexes: list
        :param flags: Selection flags. ( QItemSelectionModel.SelectionFlags )
        :return: Definition success.
        :rtype: bool
        """

        if self.selectionModel():
            selection = QItemSelection()
            for index in indexes:
                selection.merge(QItemSelection(index, index), flags)
            self.selectionModel().select(selection, flags)
        return True