* @brief Replaces the painter code on the selected group. */
| 1081 | * @brief Replaces the painter code on the selected group. |
| 1082 | */ |
| 1083 | void 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. |
no test coverage detected