diff options
Diffstat (limited to 'krecipes/src/propertycalculator.cpp')
-rw-r--r-- | krecipes/src/propertycalculator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/krecipes/src/propertycalculator.cpp b/krecipes/src/propertycalculator.cpp index 3b4285e..8310b14 100644 --- a/krecipes/src/propertycalculator.cpp +++ b/krecipes/src/propertycalculator.cpp @@ -64,7 +64,7 @@ void calculateProperties( Recipe& recipe, RecipeDB* database ) void addPropertyToList( RecipeDB *database, IngredientPropertyList *recipePropertyList, IngredientPropertyList &ingPropertyList, const Ingredient &ing, int ingredientNo ) { - QMap<int,double> ratioCache; //unit->ratio + TQMap<int,double> ratioCache; //unit->ratio IngredientPropertyList::const_iterator prop_it; for ( prop_it = ingPropertyList.begin(); prop_it != ingPropertyList.end(); ++prop_it ) { @@ -76,7 +76,7 @@ void addPropertyToList( RecipeDB *database, IngredientPropertyList *recipeProper Ingredient result; bool converted; - QMap<int,double>::const_iterator cache_it = ratioCache.find((*prop_it).perUnit.id); + TQMap<int,double>::const_iterator cache_it = ratioCache.find((*prop_it).perUnit.id); if ( cache_it == ratioCache.end() ) { RecipeDB::ConversionStatus status = database->convertIngredientUnits( ing, (*prop_it).perUnit, result ); converted = status == RecipeDB::Success || status == RecipeDB::MismatchedPrepMethodUsingApprox; @@ -101,12 +101,12 @@ void addPropertyToList( RecipeDB *database, IngredientPropertyList *recipeProper property.id = (*prop_it).id; property.name = (*prop_it).name; property.perUnit.id = -1; // It's not per unit, it's total sum of the recipe - property.perUnit.name = QString::null; // " + property.perUnit.name = TQString::null; // " property.units = (*prop_it).units; Ingredient result; bool converted; - QMap<int,double>::const_iterator cache_it = ratioCache.find((*prop_it).perUnit.id); + TQMap<int,double>::const_iterator cache_it = ratioCache.find((*prop_it).perUnit.id); if ( cache_it == ratioCache.end() ) { RecipeDB::ConversionStatus status = database->convertIngredientUnits( ing, (*prop_it).perUnit, result ); converted = status == RecipeDB::Success || status == RecipeDB::MismatchedPrepMethodUsingApprox; |