]> granicus.if.org Git - transmission/commitdiff
(trunk qt) fix text alignment issue in the inspector's peers tab's speed and percenta...
authorJordan Lee <jordan@transmissionbt.com>
Sat, 20 Aug 2011 05:45:11 +0000 (05:45 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 20 Aug 2011 05:45:11 +0000 (05:45 +0000)
qt/details.cc

index 0efad778301f781ee2da97e020c368c3d88ca5e1..f1c5984e6ed859bb0cb90f86a3365363374a43ec 100644 (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 );