Use a const QAIM pointer here to also work with QItemSelectionModel::model.
Ground work for a network-transparent QItemSelectionModel.

Still needs the client and server specific bits.