* @brief Resolves a Group.uniqueId to its positional groupId in the live frame. */
| 596 | * @brief Resolves a Group.uniqueId to its positional groupId in the live frame. |
| 597 | */ |
| 598 | int UI::Dashboard::groupIdForUniqueId(int uniqueId) const |
| 599 | { |
| 600 | if (uniqueId < 0) |
| 601 | return -1; |
| 602 | |
| 603 | for (const auto& group : m_lastFrame.groups) |
| 604 | if (group.uniqueId == uniqueId) |
| 605 | return group.groupId; |
| 606 | |
| 607 | return -1; |
| 608 | } |
| 609 | |
| 610 | /** |
| 611 | * @brief Resolves a positional groupId to its Group.uniqueId; returns -1 if absent. |
no outgoing calls
no test coverage detected