MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / onAddField

Method onAddField

Source/GUI/StructEditor/StructEditorWidget.cpp:363–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363void StructEditorWidget::onAddField()
364{
365 onAddPaddingField(false);
366
367 bool ok;
368 const QModelIndexList selection = m_structDetailView->selectionModel()->selectedIndexes();
369
370 Q_ASSERT(!selection.isEmpty());
371 ok = createNewFieldEntry(m_structDetailModel->getIndexAt(selection.last().row()));
372
373 if (!ok)
374 onDeleteFields();
375 else
376 m_btnSaveStructDetails->setEnabled(true);
377}
378
379void StructEditorWidget::onDuplicateField(const QModelIndex& index)
380{

Callers

nothing calls this directly

Calls 1

getIndexAtMethod · 0.80

Tested by

no test coverage detected