[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/krecipes/src/dialogs
From: Unai Garro <ugarro () telefonica ! net>
Date: 2004-03-25 20:04:01
Message-ID: 20040325200401.3D04E99C4 () office ! kde ! org
[Download RAW message or body]
CVS commit by uga:
Add one more "None" option to the combo to display no recipes missing ingredients
M +8 -2 ingredientmatcherdialog.cpp 1.7
--- kdenonbeta/krecipes/src/dialogs/ingredientmatcherdialog.cpp #1.6:1.7
@@ -40,5 +40,6 @@ IngredientMatcherDialog::IngredientMatch
missingNumberCombo=new KComboBox(missingBox);
QStringList optionsList;
- optionsList.append("1");
+ optionsList.append(i18n("None"));
+ optionsList+="1";
optionsList+="2";
optionsList+="3";
@@ -123,9 +124,14 @@ void IngredientMatcherDialog::findRecipe
}
+ //Check if the user wants to show missing ingredients
+
+ if (this->missingNumberCombo->currentItem()==0) return; //None
+
// Show recipes with missing ingredients
new SectionItem(recipeListView->listView(),i18n("You are missing some ingredients for:"));
QValueList<int>::Iterator nit;
- if (this->missingNumberCombo->currentItem()==3) // Any
+
+ if (this->missingNumberCombo->currentItem()==4) // Any
{
for (it=incompleteRecipes.begin();it!=incompleteRecipes.end();++it)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic