Ohhhh that's why Retina did not work properly...

This commit is contained in:
ArsenArsen 2017-05-13 13:10:49 +02:00
parent c2f35e9189
commit 135300b89a

View File

@ -13,7 +13,7 @@ CropEditor::CropEditor(QPixmap *image, QObject *parent) : QObject(parent) {
view = new CropView(scene); view = new CropView(scene);
QPixmap *scaled = new QPixmap(); QPixmap *scaled = new QPixmap();
image->scaled(view->width(), view->height()).swap(*scaled); image->scaled(view->width(), view->height()).swap(*scaled);
pixmapItem = new QGraphicsPixmapItem(*image); pixmapItem = new QGraphicsPixmapItem(*scaled);
pixmapItem->setZValue(-1); pixmapItem->setZValue(-1);
scene->addItem(pixmapItem); scene->addItem(pixmapItem);
scene->setSceneRect(image->rect()); scene->setSceneRect(image->rect());