MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / toolTip

Method toolTip

src/plugins/debugger/interface/breakpointitem.cpp:106–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106QString 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
145QString BreakpointItem::filePath() const
146{

Callers 14

CommitChangesWidgetMethod · 0.80
resetFileMethod · 0.80
addFileToCommitListMethod · 0.80
revertAllChangesMethod · 0.80
getFilesMethod · 0.80
showUnstagedMenuMethod · 0.80
onShowDiffMethod · 0.80
onDoubleClickMethod · 0.80
updateMethod · 0.80
toggledMethod · 0.80
mousePressEventMethod · 0.80

Calls 1

typeToStringFunction · 0.85

Tested by

no test coverage detected