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

Method firstHighlightIndex

kdevplatform/outputview/outputmodel.cpp:304–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304QModelIndex OutputModel::firstHighlightIndex()
305{
306 Q_D(OutputModel);
307
308 if( !d->m_errorItems.empty() ) {
309 return index( *d->m_errorItems.begin(), 0, QModelIndex() );
310 }
311
312 for( int row = 0; row < rowCount(); ++row ) {
313 if( d->m_filteredItems.at( row ).isActivatable ) {
314 return index( row, 0, QModelIndex() );
315 }
316 }
317
318 return QModelIndex();
319}
320
321QModelIndex OutputModel::nextHighlightIndex( const QModelIndex &currentIdx )
322{

Callers 1

selectItemMethod · 0.80

Calls 5

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

Tested by

no test coverage detected