| 111 | } |
| 112 | |
| 113 | KDevelop::VcsEvent VcsBasicEventModel::eventForIndex(const QModelIndex& idx) const |
| 114 | { |
| 115 | Q_D(const VcsBasicEventModel); |
| 116 | |
| 117 | if( !idx.isValid() || idx.row() < 0 || idx.row() >= rowCount() ) |
| 118 | { |
| 119 | return KDevelop::VcsEvent(); |
| 120 | } |
| 121 | return d->m_events.at( idx.row() ); |
| 122 | } |
| 123 | |
| 124 | class VcsEventLogModelPrivate |
| 125 | { |
no test coverage detected