| 38 | return 4; |
| 39 | } |
| 40 | QVariant ProgramModel::headerData(int section, Qt::Orientation orientation, int role) const { |
| 41 | if (orientation == Qt::Horizontal) { |
| 42 | if (role == Qt::DisplayRole) { |
| 43 | switch (section) { |
| 44 | case 0: return tr("BP"); |
| 45 | case 1: return tr("Address"); |
| 46 | case 2: return tr("Code"); |
| 47 | case 3: return tr("Instruction"); |
| 48 | default: return tr(""); |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | return Super::headerData(section, orientation, role); |
| 53 | } |
| 54 | |
| 55 | QVariant ProgramModel::data(const QModelIndex &index, int role) const { |
| 56 | const machine::FrontendMemory *mem; |
nothing calls this directly
no outgoing calls
no test coverage detected