MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / groupIdForUniqueId

Method groupIdForUniqueId

app/src/UI/Dashboard.cpp:598–608  ·  view source on GitHub ↗

* @brief Resolves a Group.uniqueId to its positional groupId in the live frame. */

Source from the content-addressed store, hash-verified

596 * @brief Resolves a Group.uniqueId to its positional groupId in the live frame.
597 */
598int 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.

Callers 2

workspaceWidgetIdsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected