[yast-commit] r58235 - in /trunk/qt-pkg: package/yast2-qt-pkg.changes src/YQPkgVersionsView.cc
Author: tgoettlicher Date: Fri Jul 31 10:55:11 2009 New Revision: 58235 URL: http://svn.opensuse.org/viewcvs/yast?rev=58235&view=rev Log: Added repo priority and vendor to version view (bnc #503185) Modified: trunk/qt-pkg/package/yast2-qt-pkg.changes trunk/qt-pkg/src/YQPkgVersionsView.cc Modified: trunk/qt-pkg/package/yast2-qt-pkg.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/package/yast2-qt-pkg.changes?rev=58235&r1=58234&r2=58235&view=diff ============================================================================== --- trunk/qt-pkg/package/yast2-qt-pkg.changes (original) +++ trunk/qt-pkg/package/yast2-qt-pkg.changes Fri Jul 31 10:55:11 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Fri Jul 31 10:54:15 CEST 2009 - tgoettlicher@suse.de + +- Added repo priority and vendor to version view (bnc #503185) + +------------------------------------------------------------------- Thu Jul 30 11:24:17 CEST 2009 - tgoettlicher@suse.de - Fixed bnc #499699: position of search button in software management module Modified: trunk/qt-pkg/src/YQPkgVersionsView.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPkgVersionsView.cc?rev=58235&r1=58234&r2=58235&view=diff ============================================================================== --- trunk/qt-pkg/src/YQPkgVersionsView.cc (original) +++ trunk/qt-pkg/src/YQPkgVersionsView.cc Fri Jul 31 10:55:11 2009 @@ -153,9 +153,10 @@ while ( it != selectable->installedEnd() ) { - QString text = _( "%1-%2 (installed)" ) + QString text = _( "%1-%2 from vendor %3 (installed)" ) .arg( (*it)->edition().asString().c_str() ) - .arg( (*it)->arch().asString().c_str() ); + .arg( (*it)->arch().asString().c_str() ) + .arg( (*it)->vendor().c_str() ) ; QWidget * installedVersion = new QWidget( this ); QHBoxLayout * instLayout = new QHBoxLayout( installedVersion ); @@ -297,15 +298,20 @@ , _zyppObj( zyppObj ) { // Translators: %1 is a package version, %2 the package architecture, - // %3 describes the repository where it comes from. Examples: - // 2.5.23-i568 from Packman - // 3.17.4-i386 from openSUSE-11.1 update repository - // ^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - // %1 %2 %3 - setText( _( "%1-%2 from %3" ) + // %3 describes the repository where it comes from, + // %4 is the repository's priority + // %5 is the vendor of the package + // Examples: + // 2.5.23-i568 from Packman with priority 100 and vendor openSUSE + // 3.17.4-i386 from openSUSE-11.1 update repository with priority 20 and vendor openSUSE + // ^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^ + // %1 %2 %3 %4 %5 + setText( _( "%1-%2 from %3 with priority %4 and vendor %5" ) .arg( zyppObj->edition().asString().c_str() ) .arg( zyppObj->arch().asString().c_str() ) - .arg( zyppObj->repository().info().name().c_str() ) ); + .arg( zyppObj->repository().info().name().c_str() ) + .arg( zyppObj->repository().info().priority() ) + .arg( zyppObj->vendor().c_str() ) ); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
tgoettlicher@svn.opensuse.org