| 104 | } |
| 105 | |
| 106 | QString BreakpointItem::toolTip() const |
| 107 | { |
| 108 | QString rc; |
| 109 | QTextStream str(&rc); |
| 110 | str << "<html><body><b>" << BreakpointItem::tr("Unclaimed Breakpoint") << "</b>" |
| 111 | << "<table>" |
| 112 | //<< "<tr><td>" << tr("ID:") << "</td><td>" << m_id << "</td></tr>" |
| 113 | << "<tr><td>" << BreakpointItem::tr("State:") |
| 114 | << "</td><td>" << (bp.enabled ? BreakpointItem::tr("Enabled") : BreakpointItem::tr("Disabled")) |
| 115 | << "<tr><td>" << BreakpointItem::tr("Breakpoint Type:") |
| 116 | << "</td><td>" << typeToString(bp.type) << "</td></tr>" |
| 117 | << "<tr><td>" << BreakpointItem::tr("Condition :") |
| 118 | << "</td><td>" << bp.condition << "</td></tr>"; |
| 119 | |
| 120 | if (bp.type == BreakpointByFunction) { |
| 121 | str << "<tr><td>" << BreakpointItem::tr("Function Name:") |
| 122 | << "</td><td>" << bp.functionName |
| 123 | << "</td></tr>"; |
| 124 | } |
| 125 | if (bp.type == BreakpointByFileAndLine) { |
| 126 | str << "<tr><td>" << BreakpointItem::tr("File Name:") |
| 127 | << "</td><td>" << QDir::toNativeSeparators(bp.fileName) |
| 128 | << "</td></tr>" |
| 129 | << "<tr><td>" << BreakpointItem::tr("Line Number:") |
| 130 | << "</td><td>" << bp.lineNumber; |
| 131 | } |
| 132 | if (bp.type == BreakpointByFunction || bp.type == BreakpointByFileAndLine) { |
| 133 | str << "<tr><td>" << BreakpointItem::tr("Module:") |
| 134 | << "</td><td>" << bp.module |
| 135 | << "</td></tr>"; |
| 136 | } |
| 137 | str << "<tr><td>" << BreakpointItem::tr("Breakpoint Address:") << "</td><td>"; |
| 138 | str << bp.address; |
| 139 | str << "</td></tr>"; |
| 140 | |
| 141 | str << "</table></body></html><hr>"; |
| 142 | return rc; |
| 143 | } |
| 144 | |
| 145 | QString BreakpointItem::filePath() const |
| 146 | { |
no test coverage detected