mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(trunk Qt) #3266 "statusbar different from gtk client" -- pass Longinus00's patch through to trunk as-is
This commit is contained in:
parent
61e7d5d901
commit
e6aea2b29e
1 changed files with 6 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue