| 146 | } |
| 147 | |
| 148 | QModelIndex CodeCompletionModel::index(int row, int column, const QModelIndex &parent) const |
| 149 | { |
| 150 | if (row < 0 || row >= rowCount(parent) || column < 0 || column >= 2 || parent.isValid()) |
| 151 | return QModelIndex(); |
| 152 | |
| 153 | return createIndex(row, column, &d->completionDatas[row]); |
| 154 | } |
| 155 | |
| 156 | QModelIndex CodeCompletionModel::parent(const QModelIndex &child) const |
| 157 | { |
no test coverage detected