From a51b63148d60045e66628611f57508d1c1f46d98 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Mon, 25 Mar 2013 02:44:42 +0100 Subject: [PATCH] [qcookboob] integration of author field --- weboob/applications/qcookboob/recipe.py | 4 +++ weboob/applications/qcookboob/ui/recipe.ui | 40 +++++++++++++++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/weboob/applications/qcookboob/recipe.py b/weboob/applications/qcookboob/recipe.py index 55947881..a72c59cd 100644 --- a/weboob/applications/qcookboob/recipe.py +++ b/weboob/applications/qcookboob/recipe.py @@ -61,6 +61,10 @@ class Recipe(QFrame): self.ui.ingredientsPlain.setPlainText('%s' % txt) else: self.ui.ingredientsPlain.parent().hide() + if not empty(recipe.author): + self.ui.authorLabel.setText('%s' % recipe.author) + else: + self.ui.authorLabel.parent().hide() if not empty(recipe.instructions): self.ui.instructionsPlain.setPlainText('%s' % recipe.instructions) else: diff --git a/weboob/applications/qcookboob/ui/recipe.ui b/weboob/applications/qcookboob/ui/recipe.ui index f0eef71f..511b6ee7 100644 --- a/weboob/applications/qcookboob/ui/recipe.ui +++ b/weboob/applications/qcookboob/ui/recipe.ui @@ -7,7 +7,7 @@ 0 0 645 - 823 + 855 @@ -164,6 +164,44 @@ + + + + + 16777215 + 35 + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + + 75 + true + + + + Author: + + + + + + + + + + + + +