Simply don't return Qt::ItemIsSelectable flag for that separator item.

See QAbstractItemModel::flags().