| 380 | } |
| 381 | |
| 382 | QModelIndex OutputModel::lastHighlightIndex() |
| 383 | { |
| 384 | Q_D(OutputModel); |
| 385 | |
| 386 | if( !d->m_errorItems.empty() ) { |
| 387 | return index( *d->m_errorItems.rbegin(), 0, QModelIndex() ); |
| 388 | } |
| 389 | |
| 390 | for( int row = rowCount()-1; row >=0; --row ) { |
| 391 | if( d->m_filteredItems.at( row ).isActivatable ) { |
| 392 | return index( row, 0, QModelIndex() ); |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | return QModelIndex(); |
| 397 | } |
| 398 | |
| 399 | void OutputModel::setFilteringStrategy(const OutputFilterStrategy& currentStrategy) |
| 400 | { |
no test coverage detected