2018-02-12 14:15:04 +00:00
|
|
|
#include "model/recipe/ingredients/ingredientlistmodel.h"
|
2018-02-12 13:24:11 +00:00
|
|
|
|
|
|
|
IngredientListModel::IngredientListModel(){
|
|
|
|
this->ingredients = vector<Ingredient>();
|
|
|
|
}
|
|
|
|
|
|
|
|
int IngredientListModel::rowCount(const QModelIndex &parent){
|
|
|
|
return this->ingredients.size();
|
|
|
|
}
|
|
|
|
|
|
|
|
QVariant IngredientListModel::data(const QModelIndex &index, int role){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void IngredientListModel::setIngredients(vector<Ingredient> ingredients){
|
|
|
|
this->ingredients = ingredients;
|
|
|
|
}
|