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

Function readStableKey

app/src/UI/WindowManager.cpp:107–113  ·  view source on GitHub ↗

* @brief Reads the stable key from a serialized geometry entry. Returns an * invalid key for legacy entries that only carry the windowId. */

Source from the content-addressed store, hash-verified

105 * invalid key for legacy entries that only carry the windowId.
106 */
107[[nodiscard]] static StableKey readStableKey(const QJsonObject& entry)
108{
109 if (!entry.contains("widgetType") || !entry.contains("relativeIndex"))
110 return {};
111
112 return {entry["widgetType"].toInt(-1), entry["relativeIndex"].toInt(-1)};
113}
114
115/**
116 * @brief Resolves a serialized geometry/order entry to the current session's

Callers 1

resolveSavedWindowIdFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected