MCPcopy Create free account
hub / github.com/Vector35/debugger / setEditorData

Method setEditorData

ui/registerswidget.cpp:382–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380
381
382void DebugRegistersItemDelegate::setEditorData(QWidget* editor, const QModelIndex& index) const
383{
384 if (index.column() == DebugRegistersListModel::ValueColumn)
385 {
386 QLineEdit* lineEditor = static_cast<QLineEdit*>(editor);
387 if (lineEditor)
388 {
389 // index.data() returns a pair of color and QString
390 lineEditor->setText(index.data().toList()[1].toString());
391 }
392 }
393}
394
395
396void DebugRegistersWidget::updateColumnWidths()

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected