From e6aea2b29e492604bbdeb2a12dc29df9fbf2df77 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 5 Jun 2010 10:47:41 +0000 Subject: [PATCH] (trunk Qt) #3266 "statusbar different from gtk client" -- pass Longinus00's patch through to trunk as-is --- qt/mainwin.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qt/mainwin.cc b/qt/mainwin.cc index 336b25e9b..de29d2512 100644 --- a/qt/mainwin.cc +++ b/qt/mainwin.cc @@ -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(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 );