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

Method XmlStreamReader

src/plugins/valgrind/mainframe/xmlstreamreader.cpp:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <QLabel>
14
15XmlStreamReader::XmlStreamReader(DTreeWidget *tree)
16{
17 treeWidget = tree;
18
19 connect(treeWidget, &DTreeWidget::itemClicked, [=](QTreeWidgetItem *item, int column) {
20 QStringList toolTip = item->toolTip(column).split(":");
21 if (toolTip.count() > 1) {
22 QString filePath = toolTip.at(0);
23 QString line = toolTip.at(1);
24 editor.gotoLine(filePath, line.toInt() - 1);
25 }
26 });
27}
28
29bool XmlStreamReader::readFile(const QString &fileName)
30{

Callers

nothing calls this directly

Calls 5

connectFunction · 0.85
toolTipMethod · 0.80
atMethod · 0.80
countMethod · 0.45
gotoLineMethod · 0.45

Tested by

no test coverage detected