code: def emptySelection(self, empty):
          
          self.setEnabled(not empty)
          if empty:
              # self.clearSelection()
              # Clear selection doesn't work? But removing individually does
              m = self.selectionModel()
              for index in m.selectedIndexes():
                  m.select(index, QtGui.QItemSelectionModel.Deselect)
              self.hintRequested.emit('To add a parameter, Drag "Add" onto empty auto-parameter table')
docs: Enables the view if not *empty*, clears the current selection and
          disables view if is *emtpy*
  
          :param emtpy: whether there are any components in the view
          :type emtpy: bool