• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/qt/

Lines Matching refs:index

159 FileTreeItem :: update( int index, bool wanted, int priority, uint64_t totalSize, uint64_t haveSize, bool torrentChanged )
163 if( myIndex != index )
165 myIndex = index;
303 FileTreeModel :: data( const QModelIndex &index, int role ) const
307 if( index.isValid() && role==Qt::DisplayRole )
309 FileTreeItem *item = static_cast<FileTreeItem*>(index.internalPointer());
310 value = item->data( index.column( ) );
317 FileTreeModel :: flags( const QModelIndex& index ) const
321 if( index.column( ) == COL_WANTED )
346 FileTreeModel :: index( int row, int column, const QModelIndex& parent ) const
352 std::cerr << " I don't have this index " << std::endl;
368 //std::cerr << "FileTreeModel::index(row("<<row<<"),col("<<column<<"),parent("<<qPrintable(parentItem->name())<<")) is returning " << qPrintable(childItem->name()) << ": internalPointer " << i.internalPointer() << " row " << i.row() << " col " << i.column() << std::endl;
427 clearSubtree( index( --i, 0, top ) );
441 FileTreeModel :: addFile( int index,
468 if( i->update( index, wanted, priority, size, have, torrentChanged ) )
473 FileTreeModel :: parentsChanged( const QModelIndex& index, int column )
475 QModelIndex walk = index;
486 FileTreeModel :: subtreeChanged( const QModelIndex& index, int column )
488 const int childCount = rowCount( index );
493 dataChanged( index.child(0,column), index.child(childCount-1,column) );
497 subtreeChanged( index.child(i,column), column );
501 FileTreeModel :: clicked( const QModelIndex& index )
503 const int column( index.column( ) );
505 if( !index.isValid( ) )
510 FileTreeItem * item( static_cast<FileTreeItem*>(index.internalPointer()));
516 dataChanged( index, index );
517 parentsChanged( index, column );
518 subtreeChanged( index, column );
522 FileTreeItem * item( static_cast<FileTreeItem*>(index.internalPointer()));
528 dataChanged( index, index );
529 parentsChanged( index, column );
530 subtreeChanged( index, column );
539 FileTreeDelegate :: sizeHint( const QStyleOptionViewItem& item, const QModelIndex& index ) const
543 switch( index.column( ) )
547 const QString text = index.data().toString();
561 const QString text = index.data().toString();
574 const QModelIndex & index ) const
576 const int column( index.column( ) );
580 QItemDelegate::paint(painter, option, index);
599 if( index.model()->hasChildren( index ) )
603 QString name = index.data().toString();
612 QItemDelegate::paint( painter, tmp, index );
627 p.progress = (int)(100.0*index.data().toDouble());
639 switch( index.data().toInt() ) {
760 myModel.addFile( file.index, file.filename, file.wanted, file.priority, file.size, file.have, added, torrentChanged );