fix: use a workaround to avoid pixelated when zoomed out

GH-31
This commit is contained in:
Gary Wang
2021-06-20 14:59:44 +08:00
parent 4c07a89ca3
commit 36c54addce
3 changed files with 40 additions and 6 deletions

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());
}
}