Changeset 9179 for trunk/qt/details.cc


Ignore:
Timestamp:
Sep 26, 2009, 6:20:33 AM (13 years ago)
Author:
charles
Message:

(trunk) remove tr_stats fields: downloaders, leechers, seeders, timesCompleted as per discussion with livings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/details.cc

    r8764 r9179  
    212212Details :: refresh( )
    213213{
    214     int i;
    215214    QLocale locale;
    216215    const int n = myIds.size( );
     
    678677    ///  Peers tab
    679678    ///
    680 
    681     i = 0;
    682     foreach( const Torrent * t, torrents ) i += t->seeders( );
    683     mySeedersLabel->setText( locale.toString( i ) );
    684 
    685     i = 0;
    686     foreach( const Torrent * t, torrents ) i += t->leechers( );
    687     myLeechersLabel->setText( locale.toString( i ) );
    688 
    689     i = 0;
    690     foreach( const Torrent * t, torrents ) i += t->timesCompleted( );
    691     myTimesCompletedLabel->setText( locale.toString( i ) );
    692679
    693680    QMap<QString,QTreeWidgetItem*> peers2;
     
    10511038    myPeerTree->setAlternatingRowColors( true );
    10521039
    1053     QHBoxLayout * h = new QHBoxLayout;
    1054     h->setSpacing( HIG :: PAD );
    1055     v->addLayout( h );
    1056 
    1057     QLabel * l = new QLabel( "Seeders:" );
    1058     l->setStyleSheet( "font: bold" );
    1059     h->addWidget( l );
    1060     l = mySeedersLabel = new QLabel( "a" );
    1061     h->addWidget( l );
    1062     h->addStretch( 1 );
    1063    
    1064     l = new QLabel( "Leechers:" );
    1065     l->setStyleSheet( "font: bold" );
    1066     h->addWidget( l );
    1067     l = myLeechersLabel = new QLabel( "b" );
    1068     h->addWidget( l );
    1069     h->addStretch( 1 );
    1070    
    1071     l = new QLabel( "Times Completed:" );
    1072     l->setStyleSheet( "font: bold" );
    1073     h->addWidget( l );
    1074     l = myTimesCompletedLabel = new QLabel( "c" );
    1075     h->addWidget( l );
    1076 
    10771040    return top;
    10781041}
Note: See TracChangeset for help on using the changeset viewer.