Skip to content

Commit

Permalink
enable smooth tranformation
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Dewald committed Mar 3, 2021
1 parent 6430620 commit 9ade0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ QPixmap MainWindow::getScaledPixmap(const QPixmap& p)
{
int w = width();
int h = height();
return p.scaled(w, h, Qt::KeepAspectRatio);
return p.scaled(w, h, Qt::KeepAspectRatio, Qt::SmoothTransformation);
}

void MainWindow::drawBackground(const QPixmap& originalSize, const QPixmap& scaled)
Expand Down

0 comments on commit 9ade0cb

Please sign in to comment.