| 134 | } |
| 135 | |
| 136 | QModelIndex CMakeCommandsContents::index(int row, int column, const QModelIndex& parent) const |
| 137 | { |
| 138 | if(row<0 || column!=0) |
| 139 | return QModelIndex(); |
| 140 | if(!parent.isValid() && row==ICMakeDocumentation::EOType) |
| 141 | return QModelIndex(); |
| 142 | |
| 143 | return createIndex(row,column, int(parent.isValid() ? parent.row() : -1)); |
| 144 | } |
| 145 | |
| 146 | int CMakeCommandsContents::rowCount(const QModelIndex& parent) const |
| 147 | { |