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

Method setGroupLayout

app/src/DataModel/ProjectModel.cpp:5006–5017  ·  view source on GitHub ↗

* @brief Stages the widget layout for a specific group. */

Source from the content-addressed store, hash-verified

5004 * @brief Stages the widget layout for a specific group.
5005 */
5006void 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//--------------------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

layoutKeyFunction · 0.85
operationModeMethod · 0.80

Tested by

no test coverage detected