Author: sh-sh-sh Date: Wed Jul 9 17:24:27 2008 New Revision: 48940 URL: http://svn.opensuse.org/viewcvs/yast?rev=48940&view=rev Log: - Fixed bnc #397082: No "[x] View -debugsource packages" menu entry: Now toggling -debuginfo and -debugsource simultaneously. - Added "Install matching -debugsource packages" menu entry Modified: trunk/qt-pkg/VERSION.cmake trunk/qt-pkg/package/yast2-qt-pkg.changes trunk/qt-pkg/src/YQPackageSelector.cc trunk/qt-pkg/src/YQPackageSelector.h trunk/qt-pkg/src/YQPkgVersionsView.cc Modified: trunk/qt-pkg/VERSION.cmake URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/VERSION.cmake?rev=48940&r1=48939&r2=48940&view=diff ============================================================================== --- trunk/qt-pkg/VERSION.cmake (original) +++ trunk/qt-pkg/VERSION.cmake Wed Jul 9 17:24:27 2008 @@ -1,3 +1,3 @@ SET(VERSION_MAJOR "2") SET(VERSION_MINOR "17") -SET(VERSION_PATCH "1") +SET(VERSION_PATCH "2") 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=48940&r1=48939&r2=48940&view=diff ============================================================================== --- trunk/qt-pkg/package/yast2-qt-pkg.changes (original) +++ trunk/qt-pkg/package/yast2-qt-pkg.changes Wed Jul 9 17:24:27 2008 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Wed Jul 9 17:17:00 CEST 2008 - sh@suse.de + +- Fixed bnc #397082: No "[x] View -debugsource packages" menu entry: + Now toggling -debuginfo and -debugsource simultaneously. +- Added "Install matching -debugsource packages" menu entry +- V 2.17.2 + +------------------------------------------------------------------- Thu Jun 26 09:47:18 CEST 2008 - schubi@suse.de - Added plugin mechanism for displaying grafic solver results. Modified: trunk/qt-pkg/src/YQPackageSelector.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPackageSelector.cc?rev=48940&r1=48939&r2=48940&view=diff ============================================================================== --- trunk/qt-pkg/src/YQPackageSelector.cc (original) +++ trunk/qt-pkg/src/YQPackageSelector.cc Wed Jul 9 17:24:27 2008 @@ -630,7 +630,7 @@ // Translators: This is about packages ending in "-devel", so don't translate that "-devel"! _showDevelAction = _viewMenu->addAction( _( "Show -de&vel Packages" ), this, SLOT( pkgExcludeDevelChanged( bool ) ), Qt::Key_F7 ); - _showDevelAction->setCheckable(true); + _showDevelAction->setCheckable(true); _showDevelAction->setChecked(true); _excludeDevelPkgs = new YQPkgObjList::ExcludeRule( _pkgList, QRegExp( ".*-devel(-\\d+bit)?$" ), _pkgList->nameCol() ); @@ -638,11 +638,11 @@ _excludeDevelPkgs->enable( false ); // Translators: This is about packages ending in "-debuginfo", so don't translate that "-debuginfo"! - _showDebugAction = _viewMenu->addAction( _( "Show -&debuginfo Packages" ), + _showDebugAction = _viewMenu->addAction( _( "Show -&debuginfo/-debugsource Packages" ), this, SLOT( pkgExcludeDebugChanged( bool ) ), Qt::Key_F8 ); - _showDebugAction->setCheckable(true); + _showDebugAction->setCheckable(true); _showDebugAction->setChecked(true); - _excludeDebugInfoPkgs = new YQPkgObjList::ExcludeRule( _pkgList, QRegExp( ".*-debuginfo$" ), _pkgList->nameCol() ); + _excludeDebugInfoPkgs = new YQPkgObjList::ExcludeRule( _pkgList, QRegExp( ".*-(debuginfo|debugsource)$" ), _pkgList->nameCol() ); Q_CHECK_PTR( _excludeDebugInfoPkgs ); _excludeDebugInfoPkgs->enable( false ); @@ -760,6 +760,9 @@ // Translators: This is about packages ending in "-debuginfo", so don't translate that "-debuginfo"! _extrasMenu->addAction( _( "Install All Matching -de&buginfo Packages" ), this, SLOT( installDebugInfoPkgs() ) ); + + // Translators: This is about packages ending in "-debugsource", so don't translate that "-debugsource"! + _extrasMenu->addAction( _( "Install All Matching -debug&source Packages" ), this, SLOT( installDebugSourcePkgs() ) ); _extrasMenu->addSeparator(); @@ -1354,6 +1357,14 @@ installSubPkgs( "-debuginfo" ); } + +void +YQPackageSelector::installDebugSourcePkgs() +{ + installSubPkgs( "-debugsource" ); +} + + void YQPackageSelector::pkgExcludeDebugChanged( bool on ) { @@ -1379,7 +1390,7 @@ } void -YQPackageSelector::installSubPkgs( const QString suffix ) +YQPackageSelector::installSubPkgs( const QString & suffix ) { // Find all matching packages and put them into a QMap Modified: trunk/qt-pkg/src/YQPackageSelector.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPackageSelector.h?rev=48940&r1=48939&r2=48940&view=diff ============================================================================== --- trunk/qt-pkg/src/YQPackageSelector.h (original) +++ trunk/qt-pkg/src/YQPackageSelector.h Wed Jul 9 17:24:27 2008 @@ -100,16 +100,22 @@ void installDevelPkgs(); /** - * Install any -debuginfo package for packages that are installed or marked - * for installation + * Install available -debuginfo packages for packages that are installed or + * marked for installation **/ void installDebugInfoPkgs(); /** + * Install available -debugsource packages for packages that are installed or + * marked for installation + **/ + void installDebugSourcePkgs(); + + /** * Install any subpackage that ends with 'suffix' for packages that are * installed or marked for installation **/ - void installSubPkgs( const QString suffix ); + void installSubPkgs( const QString & suffix ); /** * Enable or disable the package exclude rules (show or suppress -debuginfo Modified: trunk/qt-pkg/src/YQPkgVersionsView.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPkgVersionsView.cc?rev=48940&r1=48939&r2=48940&view=diff ============================================================================== --- trunk/qt-pkg/src/YQPkgVersionsView.cc (original) +++ trunk/qt-pkg/src/YQPkgVersionsView.cc Wed Jul 9 17:24:27 2008 @@ -285,8 +285,10 @@ , _selectable( selectable ) , _zyppObj( zyppObj ) { - setText( _( "%1-%2 from %3" ).arg( zyppObj->edition().asString().c_str() ).arg( zyppObj->arch().asString().c_str() ).arg( zyppObj->repository().name().c_str() ) ); - + setText( _( "%1-%2 from %3" ) + .arg( zyppObj->edition().asString().c_str() ) + .arg( zyppObj->arch().asString().c_str() ) + .arg( zyppObj->repository().name().c_str() ) ); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org