Lines Matching refs:model
23 #include "torrent-model.h"
59 FilterBarComboBoxDelegate :: setSeparator( QAbstractItemModel * model, const QModelIndex& index )
61 model->setData( index, QString::fromLatin1("separator"), Qt::AccessibleDescriptionRole );
63 if( QStandardItemModel *m = qobject_cast<QStandardItemModel*>(model) )
164 const QModelIndex modelIndex = model()->index( currentIndex(), 0, rootModelIndex() );
221 QStandardItemModel * model = new QStandardItemModel;
225 model->appendRow( row );
227 model->appendRow( new QStandardItem ); // separator
228 delegate->setSeparator( model, model->index( 1, 0 ) );
232 model->appendRow( row );
236 model->appendRow( row );
240 model->appendRow( row );
244 model->appendRow( row );
248 model->appendRow( row );
252 model->appendRow( row );
256 model->appendRow( row );
258 c->setModel( model );
289 // pull info from the tracker model...
298 // pull the new stats from the torrent model...
374 FilterBar :: createTrackerCombo( QStandardItemModel * model )
383 model->appendRow( row );
385 model->appendRow( new QStandardItem ); // separator
386 delegate->setSeparator( model, model->index( 1, 0 ) );
388 c->setModel( model );
474 QAbstractItemModel * model = myActivityCombo->model( );
475 QModelIndexList indices = model->match( model->index(0,0), ActivityRole, m.mode(), -1 );
561 QAbstractItemModel * model = myActivityCombo->model( );
562 QModelIndexList indices = model->match( model->index(0,0), ActivityRole, m.mode(), -1 );
564 model->setData( indices.first(), getCountString(myFilter.count(m)), TorrentCountRole );