[qcookboob] cosmetics

This commit is contained in:
Julien Veyssier 2013-03-18 15:55:00 +01:00 committed by Florent
commit 4dfdcfbe97
2 changed files with 50 additions and 2 deletions

View file

@ -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))