1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

(qt) #3313:Long orign label can make torrent properites window arbitrarily wide

This commit is contained in:
Daniel Lee 2010-06-18 07:34:37 +00:00
parent fab8e5e691
commit 3a8809e38f

View file

@ -924,6 +924,7 @@ Details :: createInfoTab( )
hig->addRow( tr( "Hash:" ), myHashLabel = new SqueezeLabel );
hig->addRow( tr( "Privacy:" ), myPrivacyLabel = new SqueezeLabel );
hig->addRow( tr( "Origin:" ), myOriginLabel = new SqueezeLabel );
myOriginLabel->setMinimumWidth( 325 ); // stop long origin strings from resizing the widgit
hig->addRow( tr( "Comment:" ), myCommentBrowser = new QTextBrowser );
const int h = QFontMetrics(myCommentBrowser->font()).lineSpacing() * 4;
myCommentBrowser->setFixedHeight( h );