[qcineoob] set pictures sizes
This commit is contained in:
parent
8d49950813
commit
1c42b12ab6
3 changed files with 3 additions and 3 deletions
|
|
@ -49,7 +49,7 @@ class MiniRecipe(QFrame):
|
|||
if not empty(self.recipe.thumbnail_url):
|
||||
data = urllib.urlopen(self.recipe.thumbnail_url).read()
|
||||
img = QImage.fromData(data)
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img).scaledToHeight(100))
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img).scaledToHeight(100,Qt.SmoothTransformation))
|
||||
|
||||
def enterEvent(self, event):
|
||||
self.setFrameShadow(self.Sunken)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue