* @brief Builds the derived widgetId string for a workspace widget reference. */
| 62 | * @brief Builds the derived widgetId string for a workspace widget reference. |
| 63 | */ |
| 64 | [[nodiscard]] static QString widgetIdFor(int workspaceId, int widgetType, int groupId, int relIdx) |
| 65 | { |
| 66 | const QString slug = API::EnumLabels::dashboardWidgetSlug(widgetType); |
| 67 | return QStringLiteral("ws%1:%2:g%3:%4") |
| 68 | .arg(QString::number(workspaceId), slug, QString::number(groupId), QString::number(relIdx)); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * @brief Outcome of parsing a widgetId string into its component fields. |
no outgoing calls
no test coverage detected