From 4dfdcfbe97dc98f1640299416d66d62941e2b137 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Mon, 18 Mar 2013 15:55:00 +0100 Subject: [PATCH] [qcookboob] cosmetics --- weboob/applications/qcookboob/recipe.py | 2 +- weboob/applications/qcookboob/ui/recipe.ui | 50 +++++++++++++++++++++- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/weboob/applications/qcookboob/recipe.py b/weboob/applications/qcookboob/recipe.py index a71daee2..ab0e2466 100644 --- a/weboob/applications/qcookboob/recipe.py +++ b/weboob/applications/qcookboob/recipe.py @@ -78,4 +78,4 @@ class Recipe(QFrame): if not empty(self.recipe.picture_url): data = urllib.urlopen(self.recipe.picture_url).read() img = QImage.fromData(data) - self.ui.imageLabel.setPixmap(QPixmap.fromImage(img)) + self.ui.imageLabel.setPixmap(QPixmap.fromImage(img).scaledToWidth(250,Qt.SmoothTransformation)) diff --git a/weboob/applications/qcookboob/ui/recipe.ui b/weboob/applications/qcookboob/ui/recipe.ui index b69ddb0e..091b1fa7 100644 --- a/weboob/applications/qcookboob/ui/recipe.ui +++ b/weboob/applications/qcookboob/ui/recipe.ui @@ -7,7 +7,7 @@ 0 0 645 - 600 + 823 @@ -95,6 +95,12 @@ + + + 75 + true + + Id: @@ -130,6 +136,12 @@ + + + 75 + true + + Title: @@ -162,6 +174,12 @@ + + + 75 + true + + Number of people: @@ -194,6 +212,12 @@ + + + 75 + true + + Preparation time: @@ -226,6 +250,12 @@ + + + 75 + true + + Cook time: @@ -264,6 +294,12 @@ + + + 75 + true + + Ingredients: @@ -314,6 +350,12 @@ 16777215 + + + 75 + true + + Instructions: @@ -358,6 +400,12 @@ + + + 75 + true + + Comments: