(qt) Make the comment box expand downward

This commit is contained in:
Daniel Lee 2010-06-03 23:22:14 +00:00
parent 134df85eb9
commit c58ad98852
1 changed files with 2 additions and 2 deletions

View File

@ -496,6 +496,7 @@ Details :: refresh( )
}
}
myCommentBrowser->setText( string );
myCommentBrowser->setMaximumHeight( QWIDGETSIZE_MAX );
// myOriginLabel
if( torrents.empty( ) )
@ -885,8 +886,7 @@ Details :: createInfoTab( )
hig->addRow( tr( "Origin:" ), myOriginLabel = new SqueezeLabel );
hig->addRow( tr( "Comment:" ), myCommentBrowser = new QTextBrowser );
const int h = QFontMetrics(myCommentBrowser->font()).lineSpacing() * 4;
myCommentBrowser->setMinimumHeight( h );
myCommentBrowser->setMaximumHeight( h );
myCommentBrowser->setFixedHeight( h );
hig->finish( );