Changeset 10860 for branches/2.0x/qt/mainwin.cc
- Timestamp:
- Jun 25, 2010, 9:04:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0x/qt/mainwin.cc
r10770 r10860 440 440 { 441 441 QMenu * m; 442 QLabel * l, *l2;443 QWidget * w;442 QLabel * l; 443 QWidget * w; 444 444 QHBoxLayout * h; 445 445 QPushButton * p; … … 502 502 h->addWidget( l ); 503 503 504 h->addSpacing( HIG::PAD_BIG ); 505 504 506 w = new QWidget( this ); 505 507 w->setMinimumSize( HIG::PAD_BIG, 1 ); 506 508 w->setMaximumSize( HIG::PAD_BIG, 1 ); 507 509 h->addWidget( w ); 510 l = myDownloadSpeedLabel = new QLabel( this ); 511 h->addWidget( l ); 508 512 l = new QLabel( this ); 509 513 l->setPixmap( getStockIcon( "go-down", QStyle::SP_ArrowDown ).pixmap( smallIconSize ) ); 510 514 h->addWidget( l ); 511 l2 = myDownloadSpeedLabel = new QLabel( this ); 512 h->addWidget( l2 ); 513 myDownStatusWidgets << w << l << l2; 515 516 h->addSpacing( HIG::PAD_BIG ); 514 517 515 518 w = new QWidget( this ); … … 517 520 w->setMaximumSize( HIG::PAD_BIG, 1 ); 518 521 h->addWidget( w ); 522 l = myUploadSpeedLabel = new QLabel; 523 h->addWidget( l ); 519 524 l = new QLabel; 520 525 l->setPixmap( getStockIcon( "go-up", QStyle::SP_ArrowUp ).pixmap( smallIconSize ) ); 521 526 h->addWidget( l ); 522 l2 = myUploadSpeedLabel = new QLabel;523 h->addWidget( l2 );524 myUpStatusWidgets << w << l << l2;525 527 526 528 return top; … … 735 737 myUploadSpeedLabel->setText( Utils :: speedToString( up ) ); 736 738 myDownloadSpeedLabel->setText( Utils :: speedToString( down ) ); 737 foreach( QWidget * w, myUpStatusWidgets ) w->setVisible( !up.isZero( ) );738 foreach( QWidget * w, myDownStatusWidgets ) w->setVisible( !down.isZero( ) );739 739 740 740 myNetworkLabel->setVisible( !mySession.isServer( ) );
Note: See TracChangeset
for help on using the changeset viewer.