From 98232d246bf262ec58ec90ef3bc8d2046641da23 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sat, 20 Aug 2011 05:45:11 +0000 Subject: [PATCH] (trunk qt) fix text alignment issue in the inspector's peers tab's speed and percentage columns --- qt/details.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qt/details.cc b/qt/details.cc index 0efad7783..f1c5984e6 100644 --- a/qt/details.cc +++ b/qt/details.cc @@ -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 ); -- 2.40.0