def METHOD_NAME(self, model):
    QTableView.METHOD_NAME(self._table, model)
    self._table.setSelectionModel(model._selectionModel)
    if model.rowCount() > 0:
        self.setCurrentIndex(self.PAGE_LISTVIEW)
    else:
        self.setCurrentIndex(self.PAGE_EMPTY)
    model.rowsInserted.connect(self._onRowsChanged)
    model.rowsRemoved.connect(self._onRowsChanged)
    self.model = model
    self._setListViewLook()