added temporary solution to not stretch the pixmap out of the window

This commit is contained in:
defnax 2020-01-13 15:36:55 +01:00
parent 737980bf12
commit b1f45536a2

View File

@ -48,7 +48,9 @@ PhotoView::~PhotoView()
void PhotoView::setPixmap(const QPixmap& pixmap)
{
ui->photoLabel->setPixmap(pixmap);
QPixmap sqpixmap = pixmap.scaled(600,480, Qt::KeepAspectRatio, Qt::SmoothTransformation);
ui->photoLabel->setPixmap(sqpixmap);
}
void PhotoView::setTitle(const QString& text)