From 50ff37599c5727b1f6966abb2eaabbc5adf49105 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Fri, 30 Mar 2018 11:05:17 +0200 Subject: [PATCH] Cleaned up NewRecipe dialog, and example recipe. --- gui/mainwindow.ui | 24 ++++++++++++++++++++++-- gui/newrecipedialog.ui | 35 ++++++----------------------------- main.cpp | 3 +-- 3 files changed, 29 insertions(+), 33 deletions(-) diff --git a/gui/mainwindow.ui b/gui/mainwindow.ui index 0925f75..01f4b80 100644 --- a/gui/mainwindow.ui +++ b/gui/mainwindow.ui @@ -329,10 +329,10 @@ font: "Noto Sans CJK KR"; 0 - + - + 0 0 @@ -361,6 +361,26 @@ font: "Noto Sans CJK KR"; + + + + + 0 + 0 + + + + + Noto Sans CJK KR Light + 14 + PreferAntialias + + + + By Unknown Author + + + diff --git a/gui/newrecipedialog.ui b/gui/newrecipedialog.ui index 7a57690..ad84d1a 100644 --- a/gui/newrecipedialog.ui +++ b/gui/newrecipedialog.ui @@ -96,27 +96,11 @@ - - - - - 3 - false - false - - - - Edit Recipe - - - Qt::AlignCenter - - - + 16 3 false false @@ -158,7 +142,7 @@ 0 1999 12 - 25 + 24 @@ -418,16 +402,6 @@ 0 - - - - Ingredients - - - Qt::AlignCenter - - - @@ -832,7 +806,10 @@ Qt::LeftToRight - false + true + + + background-color: rgb(255, 255, 255); QDialogButtonBox::Cancel|QDialogButtonBox::Ok diff --git a/main.cpp b/main.cpp index 5d4d83f..688b57e 100644 --- a/main.cpp +++ b/main.cpp @@ -20,7 +20,7 @@ int main(int argc, char *argv[]) Recipe rec("Example", ri, - Instruction("BOLDiTaLiCs"), + Instruction("Placeholder Text"), QImage(), vector({RecipeTag("testing"), RecipeTag("fake")}), @@ -32,7 +32,6 @@ int main(int argc, char *argv[]) bool success = recipeDB.storeRecipe(rec); printf("Storage successful: %d\n", success); - //recipeDB.selectFrom("recipe", "recipeId, name", "").printData(); w.loadFromRecipe(recipeDB.retrieveRandomRecipe()); a.exec();