Mercurial > minori
comparison src/gui/widgets/poster.cc @ 202:71832ffe425a
animia: re-add kvm fd source
this is all being merged from my wildly out-of-date laptop. SORRY!
in other news, I edited the CI file to install the wayland client
as well, so the linux CI build might finally get wayland stuff.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 02 Jan 2024 06:05:06 -0500 |
parents | 9613d72b097e |
children | 2f5a9247e501 |
comparison
equal
deleted
inserted
replaced
201:8f6f8dd2eb23 | 202:71832ffe425a |
---|---|
49 img.loadFromData(arr); | 49 img.loadFromData(arr); |
50 RenderToLabel(); | 50 RenderToLabel(); |
51 } | 51 } |
52 | 52 |
53 void Poster::RenderToLabel() { | 53 void Poster::RenderToLabel() { |
54 QPixmap pixmap = QPixmap::fromImage(img); | 54 const QPixmap pixmap = QPixmap::fromImage(img); |
55 if (pixmap.isNull()) | 55 if (pixmap.isNull()) |
56 return; | 56 return; |
57 label->setPixmap(pixmap.scaled(label->size(), Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation)); | 57 label->setPixmap(pixmap.scaled(label->size(), Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation)); |
58 } | 58 } |
59 | 59 |