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

Method actionIndexForId

app/src/UI/Dashboard.cpp:578–585  ·  view source on GitHub ↗

* @brief Returns the runtime index of the action with the given public @p actionId, or -1. */

Source from the content-addressed store, hash-verified

576 * @brief Returns the runtime index of the action with the given public @p actionId, or -1.
577 */
578int UI::Dashboard::actionIndexForId(int actionId) const noexcept
579{
580 for (int i = 0; i < m_actions.count(); ++i)
581 if (m_actions.at(i).actionId == actionId)
582 return i;
583
584 return -1;
585}
586
587/**
588 * @brief Retrieves a map of all widgets/windows in the dashboard.

Callers 1

fireActionByPublicIdFunction · 0.80

Calls 1

countMethod · 0.45

Tested by

no test coverage detected