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

Function itemText

src/plugins/codeeditor/codelens/codelensdelegate.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30static QString itemText(const QModelIndex &index)
31{
32 QString text = index.data(Qt::DisplayRole).toString();
33 if (index.model()->hasChildren(index))
34 text += " (" + QString::number(index.model()->rowCount(index)) + ')';
35
36 return text;
37}
38
39CodeLensDelegate::CodeLensDelegate(QObject *parent)
40 : QItemDelegate(parent)

Callers 1

drawTextMethod · 0.85

Calls 6

numberClass · 0.85
toStringMethod · 0.45
dataMethod · 0.45
hasChildrenMethod · 0.45
modelMethod · 0.45
rowCountMethod · 0.45

Tested by

no test coverage detected