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

Method groupUniqueIdForGroupId

app/src/UI/Dashboard.cpp:613–623  ·  view source on GitHub ↗

* @brief Resolves a positional groupId to its Group.uniqueId; returns -1 if absent. */

Source from the content-addressed store, hash-verified

611 * @brief Resolves a positional groupId to its Group.uniqueId; returns -1 if absent.
612 */
613int UI::Dashboard::groupUniqueIdForGroupId(int groupId) const
614{
615 if (groupId < 0)
616 return -1;
617
618 for (const auto& group : m_lastFrame.groups)
619 if (group.groupId == groupId)
620 return group.uniqueId;
621
622 return -1;
623}
624
625//--------------------------------------------------------------------------------------------------
626// Dataset & group access functions

Callers 3

setWorkspaceWidgetsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected