#4580: rows() when using qmodelindex replaced to internalId()