| 90 | } |
| 91 | |
| 92 | int PlaceholderItemProxyModel::rowCount(const QModelIndex& parent) const |
| 93 | { |
| 94 | if (!sourceModel()) |
| 95 | return 0; |
| 96 | |
| 97 | // only flat models supported for now, assert early in case that's not true |
| 98 | Q_ASSERT(!parent.isValid()); |
| 99 | Q_UNUSED(parent); |
| 100 | return sourceModel()->rowCount() + 1; |
| 101 | } |
| 102 | |
| 103 | bool KDevelop::PlaceholderItemProxyModel::hasChildren(const QModelIndex& parent) const |
| 104 | { |
no test coverage detected