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

Method setCurrentGroupPainterCode

app/src/DataModel/ProjectEditor.cpp:1083–1091  ·  view source on GitHub ↗

* @brief Replaces the painter code on the selected group. */

Source from the content-addressed store, hash-verified

1081 * @brief Replaces the painter code on the selected group.
1082 */
1083void DataModel::ProjectEditor::setCurrentGroupPainterCode(const QString& code)
1084{
1085 if (m_selectedGroup.painterCode == code)
1086 return;
1087
1088 m_selectedGroup.painterCode = code;
1089 DataModel::ProjectModel::instance().updateGroup(m_selectedGroup.groupId, m_selectedGroup, false);
1090 Q_EMIT currentGroupPainterCodeChanged();
1091}
1092
1093/**
1094 * @brief Updates the transmit function of the selected output widget.

Callers 2

PainterCodeEditorMethod · 0.80
commitMethod · 0.80

Calls 1

updateGroupMethod · 0.80

Tested by

no test coverage detected