Skip to content

Commit

Permalink
Enable antialiasing for preview images
Browse files Browse the repository at this point in the history
For some reason on Windows they still look badly scaled. Not sure why.
  • Loading branch information
Timmmm committed Jun 24, 2024
1 parent c1f6754 commit e3aa496
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SvgRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ QPixmap svgToPreviewImage(const QString& filename, QSize dimensions)
transform.translate(-viewBox.left(), -viewBox.top());

QPainter painter(&pix);
painter.setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing);
painter.setBrush(Qt::NoBrush);
painter.setPen(QPen(foreground));
painter.setTransform(transform);
Expand Down

0 comments on commit e3aa496

Please sign in to comment.