* @brief Stages the widget layout for a specific group. */
| 5004 | * @brief Stages the widget layout for a specific group. |
| 5005 | */ |
| 5006 | void DataModel::ProjectModel::setGroupLayout(const int groupId, const QJsonObject& layout) |
| 5007 | { |
| 5008 | if (AppState::instance().operationMode() != SerialStudio::ProjectFile) |
| 5009 | return; |
| 5010 | |
| 5011 | QJsonObject entry; |
| 5012 | entry[QStringLiteral("data")] = layout; |
| 5013 | m_widgetSettings.insert(Keys::layoutKey(groupId), entry); |
| 5014 | |
| 5015 | setModified(true); |
| 5016 | Q_EMIT widgetSettingsChanged(); |
| 5017 | } |
| 5018 | |
| 5019 | // code-verify off |
| 5020 | //-------------------------------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected