Author: sh-sh-sh Date: Tue Jul 8 11:43:14 2008 New Revision: 48911 URL: http://svn.opensuse.org/viewcvs/yast?rev=48911&view=rev Log: code readability Modified: trunk/qt-pkg/src/YQPkgConflictList.cc Modified: trunk/qt-pkg/src/YQPkgConflictList.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPkgConflictList.cc?rev=48911&r1=48910&r2=48911&view=diff ============================================================================== --- trunk/qt-pkg/src/YQPkgConflictList.cc (original) +++ trunk/qt-pkg/src/YQPkgConflictList.cc Tue Jul 8 11:43:14 2008 @@ -284,9 +284,11 @@ vbox->addWidget( s ); QString details = fromUTF8( ( *it )->details() ); - if ( !details.isEmpty() ) + + if ( ! details.isEmpty() ) { QStringList lines = details.split( "\n" ); + if ( lines.count() > 7 ) { details = "<qt>"; @@ -294,6 +296,7 @@ details += lines[i] + "<br>\n"; details += _( "<a href='/'>%1 more...</a>" ).arg( lines.count() - 4 ); } + QLabel * d = new QLabel( details, this ); connect( d, SIGNAL( linkActivated ( const QString & ) ), SLOT( detailsExpanded() ) ); @@ -306,6 +309,7 @@ vbox->addLayout( hbox ); _details[ d ] = *it; } + ++it; } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org