1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

(trunk Qt) #3266 "statusbar different from gtk client" -- pass Longinus00's patch through to trunk as-is

This commit is contained in:
Charles Kerr 2010-06-05 10:47:41 +00:00
parent 61e7d5d901
commit e6aea2b29e

View file

@ -454,12 +454,16 @@ TrMainWindow :: createStatusBar( )
p = myOptionsButton = new TrIconPushButton( this );
p->setIcon( QIcon( ":/icons/options.png" ) );
p->setIconSize( QPixmap( ":/icons/options.png" ).size() );
p->setFlat( true );
p->setMenu( createOptionsMenu( ) );
h->addWidget( p );
p = myAltSpeedButton = new TrIconPushButton( this );
p = myAltSpeedButton = new QPushButton( this );
p->setIcon( myPrefs.get<bool>(Prefs::ALT_SPEED_LIMIT_ENABLED) ? mySpeedModeOnIcon : mySpeedModeOffIcon );
p->setIconSize( QPixmap( ":/icons/alt-limit-on.png" ).size() );
p->setCheckable( true );
p->setFixedWidth( p->height() );
p->setFlat( true );
h->addWidget( p );
connect( p, SIGNAL(clicked()), this, SLOT(toggleSpeedMode()));
@ -490,6 +494,7 @@ TrMainWindow :: createStatusBar( )
connect( ui.action_SessionTransfer, SIGNAL(triggered()), this, SLOT(showSessionTransfer()));
p = myStatsModeButton = new TrIconPushButton( this );
p->setIcon( QIcon( ":/icons/ratio.png" ) );
p->setIconSize( QPixmap( ":/icons/ratio.png" ).size() );
p->setFlat( true );
p->setMenu( m );
h->addWidget( p );