MCPcopy Create free account
hub / github.com/KDE/kdevelop / lastHighlightIndex

Method lastHighlightIndex

kdevplatform/outputview/outputmodel.cpp:382–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382QModelIndex 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
399void OutputModel::setFilteringStrategy(const OutputFilterStrategy& currentStrategy)
400{

Callers 1

selectItemMethod · 0.80

Calls 5

emptyMethod · 0.80
rbeginMethod · 0.80
QModelIndexClass · 0.70
indexFunction · 0.50
atMethod · 0.45

Tested by

no test coverage detected