| 43 | } |
| 44 | |
| 45 | QString DebuggerView::displayName() const |
| 46 | { |
| 47 | QString name = displayNameWithoutSuffix(); |
| 48 | |
| 49 | // If there are multiple debugger views with the same name, append a number |
| 50 | // to the display name. |
| 51 | if (m_display_name_suffix_number.has_value()) |
| 52 | name = tr("%1 #%2").arg(name).arg(*m_display_name_suffix_number); |
| 53 | |
| 54 | if (m_cpu_override) |
| 55 | name = tr("%1 (%2)").arg(name).arg(DebugInterface::cpuName(*m_cpu_override)); |
| 56 | |
| 57 | return name; |
| 58 | } |
| 59 | |
| 60 | QString DebuggerView::displayNameWithoutSuffix() const |
| 61 | { |
no test coverage detected