(trunk qt) when the main window is resized to be narrow, use the layout space more wisely in the statusbar
This commit is contained in:
parent
922b47c652
commit
0f9e1d0aa0
|
@ -352,7 +352,6 @@ TrMainWindow :: createStatusBar( )
|
||||||
{
|
{
|
||||||
QMenu * m;
|
QMenu * m;
|
||||||
QLabel * l;
|
QLabel * l;
|
||||||
QWidget * w;
|
|
||||||
QHBoxLayout * h;
|
QHBoxLayout * h;
|
||||||
QPushButton * p;
|
QPushButton * p;
|
||||||
QActionGroup * a;
|
QActionGroup * a;
|
||||||
|
@ -413,12 +412,8 @@ TrMainWindow :: createStatusBar( )
|
||||||
l = myStatsLabel = new QLabel( this );
|
l = myStatsLabel = new QLabel( this );
|
||||||
h->addWidget( l );
|
h->addWidget( l );
|
||||||
|
|
||||||
h->addSpacing( HIG::PAD_BIG );
|
h->addStretch( 1 );
|
||||||
|
|
||||||
w = new QWidget( this );
|
|
||||||
w->setMinimumSize( HIG::PAD_BIG, 1 );
|
|
||||||
w->setMaximumSize( HIG::PAD_BIG, 1 );
|
|
||||||
h->addWidget( w );
|
|
||||||
l = myDownloadSpeedLabel = new QLabel( this );
|
l = myDownloadSpeedLabel = new QLabel( this );
|
||||||
const int minimumSpeedWidth = l->fontMetrics().width( Formatter::speedToString(Speed::fromKBps(999.99)));
|
const int minimumSpeedWidth = l->fontMetrics().width( Formatter::speedToString(Speed::fromKBps(999.99)));
|
||||||
l->setMinimumWidth( minimumSpeedWidth );
|
l->setMinimumWidth( minimumSpeedWidth );
|
||||||
|
@ -428,12 +423,8 @@ TrMainWindow :: createStatusBar( )
|
||||||
l->setPixmap( getStockIcon( "go-down", QStyle::SP_ArrowDown ).pixmap( smallIconSize ) );
|
l->setPixmap( getStockIcon( "go-down", QStyle::SP_ArrowDown ).pixmap( smallIconSize ) );
|
||||||
h->addWidget( l );
|
h->addWidget( l );
|
||||||
|
|
||||||
h->addSpacing( HIG::PAD_BIG );
|
h->addStretch( 1 );
|
||||||
|
|
||||||
w = new QWidget( this );
|
|
||||||
w->setMinimumSize( HIG::PAD_BIG, 1 );
|
|
||||||
w->setMaximumSize( HIG::PAD_BIG, 1 );
|
|
||||||
h->addWidget( w );
|
|
||||||
l = myUploadSpeedLabel = new QLabel;
|
l = myUploadSpeedLabel = new QLabel;
|
||||||
l->setMinimumWidth( minimumSpeedWidth );
|
l->setMinimumWidth( minimumSpeedWidth );
|
||||||
l->setAlignment( Qt::AlignRight|Qt::AlignVCenter );
|
l->setAlignment( Qt::AlignRight|Qt::AlignVCenter );
|
||||||
|
|
Loading…
Reference in New Issue