| 367 | |
| 368 | |
| 369 | void 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 | |
| 383 | DebugStackWidget::DebugStackWidget(const QString& name, ViewFrame* view, BinaryViewRef data) : m_view(view) |