| 380 | |
| 381 | |
| 382 | void 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 | |
| 396 | void DebugRegistersWidget::updateColumnWidths() |