| 145 | } |
| 146 | |
| 147 | void StructDef::setFields(QVector<FieldDef*> fields) |
| 148 | { |
| 149 | if (!isValidFieldLayout(m_length, fields)) |
| 150 | { |
| 151 | qDebug("Attempted to set invalid vector of fields to a StructDef"); |
| 152 | return; |
| 153 | } |
| 154 | qDeleteAll(m_fields); |
| 155 | m_fields = fields; |
| 156 | } |
| 157 | |
| 158 | void StructDef::updateStructTypeLabel(const QString& oldLabel, QString newLabel) |
| 159 | { |