| 239 | } |
| 240 | |
| 241 | QString InstanceView::groupNameAt(const QPoint& point) |
| 242 | { |
| 243 | executeDelayedItemsLayout(); |
| 244 | |
| 245 | VisualGroup::HitResults hitResult; |
| 246 | auto group = categoryAt(point + offset(), hitResult); |
| 247 | if (group && (hitResult & (VisualGroup::HeaderHit | VisualGroup::BodyHit))) { |
| 248 | return group->text; |
| 249 | } |
| 250 | return QString(); |
| 251 | } |
| 252 | |
| 253 | int InstanceView::calculateItemsPerRow() const |
| 254 | { |
no test coverage detected