From 4e2a82f2bd5b5d88c4ad31fa1a2448cad4281ad0 Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Sun, 14 May 2017 23:19:13 +0200 Subject: [PATCH] Attempt at improving quality of images on mac --- QHotkey | 2 +- cropeditor/cropeditor.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/QHotkey b/QHotkey index 7c4ef6a..9eace8f 160000 --- a/QHotkey +++ b/QHotkey @@ -1 +1 @@ -Subproject commit 7c4ef6a03a219c99932975bab270ea812589e1ad +Subproject commit 9eace8fbbd8dede95db623eea5e25403fd59b490 diff --git a/cropeditor/cropeditor.cpp b/cropeditor/cropeditor.cpp index 61c3f53..b7720aa 100644 --- a/cropeditor/cropeditor.cpp +++ b/cropeditor/cropeditor.cpp @@ -14,8 +14,9 @@ CropEditor::CropEditor(QPixmap *image, QObject *parent) : QObject(parent) { scene = new CropScene(parent, image); view = new CropView(scene); qreal ratio = QApplication::primaryScreen()->devicePixelRatio(); - pixmapItem = new QGraphicsPixmapItem(image->scaled(image->width() / ratio, image->height() / ratio)); + pixmapItem = new QGraphicsPixmapItem(*image); pixmapItem->setZValue(-1); + pixmapItem->setScale(1 / ratio); scene->addItem(pixmapItem); scene->setSceneRect(image->rect()); view->showFullScreen();