Ohhhh that's why Retina did not work properly...
This commit is contained in:
parent
c2f35e9189
commit
135300b89a
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user