Author: dmacvicar Date: Sat Apr 12 22:02:59 2008 New Revision: 46478 URL: http://svn.opensuse.org/viewcvs/yast?rev=46478&view=rev Log: - show bugzilla and security references in the details view - dont need to use br tag, just add useless space Modified: trunk/qt-pkg/src/YQPkgDescriptionView.cc trunk/qt-pkg/src/YQPkgGenericDetailsView.cc Modified: trunk/qt-pkg/src/YQPkgDescriptionView.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPkgDescriptionView.c... ============================================================================== --- trunk/qt-pkg/src/YQPkgDescriptionView.cc (original) +++ trunk/qt-pkg/src/YQPkgDescriptionView.cc Sat Apr 12 22:02:59 2008 @@ -18,7 +18,6 @@ #define YUILogComponent "qt-pkg" #include "YUILog.h" - #include <QRegExp> #include <QList> #include "YQPkgDescriptionView.h" @@ -28,7 +27,7 @@ using std::list; using std::string; - +using namespace zypp; YQPkgDescriptionView::YQPkgDescriptionView( QWidget * parent ) : YQPkgGenericDetailsView( parent ) @@ -61,9 +60,28 @@ QString description = fromUTF8( selectable->theObj()->description() ); if ( ! description.contains( "<!-- DT:Rich -->" ) ) - description = simpleHtmlParagraphs( description ); + description = simpleHtmlParagraphs( description ); + + html_text += ( "<p>" + description + "</p>"); - html_text += description; + // if the object is a patch, show the problem references too + Patch::constPtr patch = asKind<Patch>(selectable->theObj()); + if ( patch ) + { + html_text += "<p>"; + html_text += _("References:"); + html_text += "</p>"; + html_text += "<ul>"; + + for ( Patch::ReferenceIterator rit = patch->referencesBegin(); + rit != patch->referencesEnd(); + ++rit ) + { + html_text += QString().sprintf("<li>%s (%s) : %s</li>", rit.id().c_str(), rit.type().c_str(), rit.title().c_str() ); + } + html_text += "</ul>"; + } + html_text += htmlEnd(); setHtml( html_text ); Modified: trunk/qt-pkg/src/YQPkgGenericDetailsView.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPkgGenericDetailsVie... ============================================================================== --- trunk/qt-pkg/src/YQPkgGenericDetailsView.cc (original) +++ trunk/qt-pkg/src/YQPkgGenericDetailsView.cc Sat Apr 12 22:02:59 2008 @@ -159,7 +159,7 @@ if ( ! summary.isEmpty() ) html += " - " + summary; - html += "</td></tr></table><br>"; + html += "</td></tr></table>"; return html; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org