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

Function resolveWidgetSlug

app/src/API/Handlers/AssistantHandler.cpp:668–674  ·  view source on GitHub ↗

* @brief Resolve widgetType (slug string or DashboardWidget integer) into a slug. */

Source from the content-addressed store, hash-verified

666 * @brief Resolve widgetType (slug string or DashboardWidget integer) into a slug.
667 */
668static QString resolveWidgetSlug(const QJsonValue& wtv)
669{
670 if (wtv.isString())
671 return wtv.toString();
672
673 return API::EnumLabels::dashboardWidgetSlug(wtv.toInt());
674}
675
676/**
677 * @brief Step 4 of workspaceAddTile: enable the slug-matched DatasetOption bit.

Callers 1

workspaceAddTileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected