Changeset 13891 for trunk/qt/mainwin.cc


Ignore:
Timestamp:
Jan 27, 2013, 11:05:47 PM (8 years ago)
Author:
jordan
Message:

synchronize the Qt and GTK+ client's statusbars, including the new freespace indicator. Make the up/down speed ordering consistent between statusbar and torrent list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/mainwin.cc

    r13888 r13891  
    436436  h->addSpacing (HIG::PAD);
    437437
     438    l = myUploadSpeedLabel = new QLabel;
     439    const int minimumSpeedWidth = l->fontMetrics ().width (Formatter::speedToString (Speed::fromKBps (999.99)));
     440    l->setMinimumWidth (minimumSpeedWidth);
     441    l->setAlignment (Qt::AlignRight|Qt::AlignVCenter);
     442    h->addWidget (l);
     443    l = new QLabel;
     444    l->setPixmap (getStockIcon ("go-up", QStyle::SP_ArrowUp).pixmap (smallIconSize));
     445    h->addWidget (l);
     446
     447  h->addSpacing (HIG::PAD);
     448
    438449    l = myDownloadSpeedLabel = new QLabel (this);
    439     const int minimumSpeedWidth = l->fontMetrics ().width (Formatter::speedToString (Speed::fromKBps (999.99)));
    440450    l->setMinimumWidth (minimumSpeedWidth);
    441451    l->setAlignment (Qt::AlignRight|Qt::AlignVCenter);
     
    443453    l = new QLabel (this);
    444454    l->setPixmap (getStockIcon ("go-down", QStyle::SP_ArrowDown).pixmap (smallIconSize));
    445     h->addWidget (l);
    446 
    447   h->addSpacing (HIG::PAD);
    448 
    449     l = myUploadSpeedLabel = new QLabel;
    450     l->setMinimumWidth (minimumSpeedWidth);
    451     l->setAlignment (Qt::AlignRight|Qt::AlignVCenter);
    452     h->addWidget (l);
    453     l = new QLabel;
    454     l->setPixmap (getStockIcon ("go-up", QStyle::SP_ArrowUp).pixmap (smallIconSize));
    455455    h->addWidget (l);
    456456
Note: See TracChangeset for help on using the changeset viewer.