Author: dmacvicar Date: Thu Apr 17 23:27:25 2008 New Revision: 46815 URL: http://svn.opensuse.org/viewcvs/yast?rev=46815&view=rev Log: - move the numbers of installed packages of a pattern to the tooltip Modified: trunk/qt-pkg/src/YQPkgPatternList.cc Modified: trunk/qt-pkg/src/YQPkgPatternList.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPkgPatternList.cc?rev=46815&r1=46814&r2=46815&view=diff ============================================================================== --- trunk/qt-pkg/src/YQPkgPatternList.cc (original) +++ trunk/qt-pkg/src/YQPkgPatternList.cc Thu Apr 17 23:27:25 2008 @@ -324,7 +324,7 @@ } selection()->setInstalledPackages(installed); selection()->setTotalPackages(total); - + selection()->resetToolTip(); } } @@ -486,10 +486,13 @@ { std::string infoToolTip; infoToolTip += ("<p>" + zyppPattern()->description() + "</p>"); - setToolTip(_patternList->summaryCol(), infoToolTip.c_str()); - -// setTooltip( _summaryCol, QString().sprintf("%s (%d/%d)", zyppPattern->summary().c_str(), installed, total)); + if ( totalPackages() > 0 ) + { + infoToolTip += ("<p>" + zypp::str::form("%d / %d", installedPackages(), totalPackages() ) + "</p>"); + } + + setToolTip(_patternList->summaryCol(), infoToolTip.c_str()); } void -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org