| 146 | } |
| 147 | |
| 148 | QModelIndex VcsOverlayProxyModel::indexFromProject(QObject* project) |
| 149 | { |
| 150 | for(int i=0; i<rowCount(); i++) { |
| 151 | QModelIndex idx = index(i,0); |
| 152 | if(idx.data(ProjectModel::ProjectRole).value<QObject*>()==project) { |
| 153 | return idx; |
| 154 | } |
| 155 | } |
| 156 | return QModelIndex(); |
| 157 | } |
| 158 | |
| 159 | #include "moc_vcsoverlayproxymodel.cpp" |
nothing calls this directly
no test coverage detected