Release 1.0 Ready! #11

Merged
andrewlalis merged 6 commits from development into master 2018-04-01 07:31:09 +00:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit 5095934931 - Show all commits

View File

@ -24,6 +24,7 @@ void MainWindow::loadFromRecipe(Recipe recipe){
setAuthorName("Click 'New' to get started.");
} else {
setRecipeName(recipe.getName());
setAuthorName(recipe.getAuthor());
setInstruction(recipe.getInstruction());
setIngredients(recipe.getIngredients());
if (recipe.getImage().isNull()){
@ -72,7 +73,11 @@ void MainWindow::setTags(vector<RecipeTag> tags){
}
void MainWindow::setAuthorName(string name){
ui->authorLabel->setText(QString::fromStdString(name));
if (name.empty()){
ui->authorLabel->setText("");
} else {
ui->authorLabel->setText(QString::fromStdString("By "+name));
}
}
void MainWindow::on_newButton_clicked(){

View File

@ -373,7 +373,7 @@ font: &quot;Noto Sans CJK KR&quot;;</string>
</property>
<property name="font">
<font>
<pointsize>20</pointsize>
<pointsize>16</pointsize>
</font>
</property>
<property name="text">