Updated mainwindow to remove recipeingredient.
This commit is contained in:
parent
021ec5b815
commit
4ca4854a63
|
@ -48,7 +48,7 @@ void MainWindow::setInstruction(Instruction instruction){
|
|||
ui->instructionsTextEdit->setHtml(QString::fromStdString(instruction.getHTML()));
|
||||
}
|
||||
|
||||
void MainWindow::setIngredients(vector<RecipeIngredient> ingredients){
|
||||
void MainWindow::setIngredients(vector<Ingredient> ingredients){
|
||||
this->ingredientModel.setIngredients(ingredients);
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <QAbstractListModel>
|
||||
|
||||
#include "model/recipe/recipe.h"
|
||||
#include "model/recipe/ingredients/recipeingredientlistmodel.h"
|
||||
#include "model/recipe/ingredients/ingredientlistmodel.h"
|
||||
#include "gui/newrecipedialog.h"
|
||||
#include "gui/openrecipedialog.h"
|
||||
#include "utils/stringutils.h"
|
||||
|
@ -41,14 +41,14 @@ public:
|
|||
private:
|
||||
Ui::MainWindow *ui;
|
||||
RecipeDatabase *recipeDB;
|
||||
RecipeIngredientListModel ingredientModel;
|
||||
IngredientListModel ingredientModel;
|
||||
TagListModel tagsListModel;
|
||||
Recipe currentRecipe;
|
||||
|
||||
//Hidden manipulation methods.
|
||||
void setRecipeName(string name);
|
||||
void setInstruction(Instruction instruction);
|
||||
void setIngredients(vector<RecipeIngredient> ingredients);
|
||||
void setIngredients(vector<Ingredient> ingredients);
|
||||
void setImage(QImage img);
|
||||
void setPrepTime(QTime prepTime);
|
||||
void setCookTime(QTime cookTime);
|
||||
|
|
Loading…
Reference in New Issue