(trunk qt) fix text alignment issue in the inspector's peers tab's speed and percentage columns

This commit is contained in:
Jordan Lee 2011-08-20 05:45:11 +00:00
parent 5b53b62773
commit 98232d246b
1 changed files with 3 additions and 3 deletions

View File

@ -771,9 +771,9 @@ Details :: refresh( )
static const QIcon myEncryptionIcon( ":/icons/encrypted.png" );
static const QIcon myEmptyIcon;
item = new PeerItem( peer );
item->setTextAlignment( COL_UP, Qt::AlignRight );
item->setTextAlignment( COL_DOWN, Qt::AlignRight );
item->setTextAlignment( COL_PERCENT, Qt::AlignRight );
item->setTextAlignment( COL_UP, Qt::AlignRight|Qt::AlignVCenter );
item->setTextAlignment( COL_DOWN, Qt::AlignRight|Qt::AlignVCenter );
item->setTextAlignment( COL_PERCENT, Qt::AlignRight|Qt::AlignVCenter );
item->setIcon( COL_LOCK, peer.isEncrypted ? myEncryptionIcon : myEmptyIcon );
item->setToolTip( COL_LOCK, peer.isEncrypted ? tr( "Encrypted connection" ) : "" );
item->setText( COL_ADDRESS, peer.address );