* @brief Reads the stable key from a serialized geometry entry. Returns an * invalid key for legacy entries that only carry the windowId. */
| 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 |
no test coverage detected