Author: dmacvicar Date: Fri May 23 15:53:36 2008 New Revision: 47842 URL: http://svn.opensuse.org/viewcvs/yast?rev=47842&view=rev Log: if a patch is preselected it will go satisfied therefore it will not be shown in the "needed" list. Test for patches marked to be installed too. Modified: trunk/qt-pkg/package/yast2-qt-pkg.changes trunk/qt-pkg/src/YQPkgPatchList.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=47842&r1=47841&r2=47842&view=diff ============================================================================== --- trunk/qt-pkg/package/yast2-qt-pkg.changes (original) +++ trunk/qt-pkg/package/yast2-qt-pkg.changes Fri May 23 15:53:36 2008 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Fri May 23 15:27:24 CEST 2008 - dmacvicar@suse.de + +- if a patch is preselected it will go satisfied + therefore it will not be shown in the "needed" list. + Test for patches marked to be installed too. + +------------------------------------------------------------------- Wed May 21 18:34:36 CEST 2008 - dmacvicar@suse.de - fallback to default icon if no icon is defined in Modified: trunk/qt-pkg/src/YQPkgPatchList.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPkgPatchList.cc?rev=47842&r1=47841&r2=47842&view=diff ============================================================================== --- trunk/qt-pkg/src/YQPkgPatchList.cc (original) +++ trunk/qt-pkg/src/YQPkgPatchList.cc Fri May 23 15:53:36 2008 @@ -56,12 +56,12 @@ // special painting for category items if ( citem ) { - //std::cout << "printing category: " << index.column() << std::endl; QFont f = painter->font(); f.setWeight(QFont::Bold); - f.setPointSize(f.pointSize()+1); + QFontMetrics fm(f); + f.setPixelSize( fm.height() * 1.05 ); citem->setFont(_view->summaryCol(), f); - + painter->fillRect(option.rect, option.palette.color(QPalette::AlternateBase)); QItemDelegate::paint(painter, option, index); painter->restore(); @@ -201,9 +201,20 @@ selectable->candidateObj().isRelevant() ) { // and only those that are needed - if ( ! selectable->candidateObj().isSatisfied() ) + if ( ! selectable->candidateObj().isSatisfied() || + // may be it is satisfied because is preselected + selectable->candidateObj().status().isToBeInstalled() ) displayPatch = true; + else + yuiDebug() << "Patch " << zyppPatch->ident() + << " is already satisfied" + << endl; + } + else + yuiDebug() << "Patch " << zyppPatch->ident() + << " is not relevant to the system" + << endl; break; case RelevantAndInstalledPatches: // patches we dont need @@ -222,6 +233,9 @@ // Intentionally omitting "default" so the compiler // can catch unhandled enum values + default: + yuiDebug() << "unknown patch filter" << endl; + } if ( displayPatch ) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org