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

Method setEditorData

ui/stackwidget.cpp:369–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367
368
369void DebugStackItemDelegate::setEditorData(QWidget* editor, const QModelIndex& index) const
370{
371 if (index.column() == DebugStackListModel::ValueColumn)
372 {
373 QLineEdit* lineEditor = static_cast<QLineEdit*>(editor);
374 if (lineEditor)
375 {
376 // index.data() returns a pair of colar and QString
377 lineEditor->setText(index.data().toList()[1].toString());
378 }
379 }
380}
381
382
383DebugStackWidget::DebugStackWidget(const QString& name, ViewFrame* view, BinaryViewRef data) : m_view(view)

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected