|
|
@ -822,6 +822,10 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene() |
|
|
|
UBGraphicsPDFItem* pdfItem = pdfItemFromPDF(); |
|
|
|
UBGraphicsPDFItem* pdfItem = pdfItemFromPDF(); |
|
|
|
if (pdfItem) |
|
|
|
if (pdfItem) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
QDesktopWidget* desktop = UBApplication::desktop(); |
|
|
|
|
|
|
|
qreal currentDpi = (desktop->physicalDpiX() + desktop->physicalDpiY()) / 2; |
|
|
|
|
|
|
|
qreal pdfScale = UBSettings::settings()->pageDpi->get().toReal()/currentDpi; |
|
|
|
|
|
|
|
pdfItem->setScale(pdfScale); |
|
|
|
pdfItem->setFlag(QGraphicsItem::ItemIsMovable, true); |
|
|
|
pdfItem->setFlag(QGraphicsItem::ItemIsMovable, true); |
|
|
|
pdfItem->setFlag(QGraphicsItem::ItemIsSelectable, true); |
|
|
|
pdfItem->setFlag(QGraphicsItem::ItemIsSelectable, true); |
|
|
|
|
|
|
|
|
|
|
|