fix: use a workaround to avoid pixelated when zoomed out

GH-31
This commit is contained in:
Gary Wang committed 2021-06-20 14:59:48 +08:00
1 parent 4c07a89ca3
commit 36c54addce
3 files changed
+40 -6

No files matched your search

+2 -2
View File
@@ -392,8 +392,8 @@ void GraphicsView::setCheckerboardEnabled(bool enabled, bool invertColor)
void GraphicsView::applyTransformationModeByScaleFactor()
{
if (this->scaleFactor() < 1) {
scene()->trySetTransformationMode(Qt::SmoothTransformation);
scene()->trySetTransformationMode(Qt::SmoothTransformation, this->scaleFactor());
} else {
scene()->trySetTransformationMode(Qt::FastTransformation);
scene()->trySetTransformationMode(Qt::FastTransformation, this->scaleFactor());
}
}