2018-02-02 12:27:57 +00:00
|
|
|
#include "userInterface/mainwindow.h"
|
2018-02-02 09:00:46 +00:00
|
|
|
#include <QApplication>
|
2018-02-02 10:41:36 +00:00
|
|
|
|
2018-02-12 13:24:11 +00:00
|
|
|
#include "model/database/database.h"
|
2018-02-02 09:00:46 +00:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication a(argc, argv);
|
|
|
|
MainWindow w;
|
|
|
|
w.show();
|
|
|
|
|
2018-02-12 13:24:11 +00:00
|
|
|
Database db("test.db");
|
2018-02-02 10:41:36 +00:00
|
|
|
|
2018-02-12 19:27:27 +00:00
|
|
|
vector<RecipeIngredient> ri;
|
|
|
|
ri.push_back(RecipeIngredient("flour", "grains", 3.0f, UnitOfMeasure("cup", "cups", "c")));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Recipe rec("Example", ri, Instruction("Hello world"), QImage(), vector<RecipeTag>(), QDate::currentDate(), QTime(0, 30), QTime(0, 25), 10.0f);
|
|
|
|
|
2018-02-02 09:00:46 +00:00
|
|
|
return a.exec();
|
|
|
|
}
|