| 28 | } |
| 29 | |
| 30 | static 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 | |
| 39 | CodeLensDelegate::CodeLensDelegate(QObject *parent) |
| 40 | : QItemDelegate(parent) |