|
|
|
@ -1039,6 +1039,9 @@ UBItem *UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QStri |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mActiveScene->deselectAllItems(); |
|
|
|
|
|
|
|
|
|
if (!sourceUrl.toString().startsWith("file://") && !sourceUrl.toString().startsWith("uniboardTool://")) |
|
|
|
|
showMessage(tr("Download finished")); |
|
|
|
|
|
|
|
|
@ -1068,8 +1071,8 @@ UBItem *UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QStri |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
mActiveScene->scaleToFitDocumentSize(pixItem, true, UBSettings::objectInControlViewMargin); |
|
|
|
|
pixItem->setSelected(true); |
|
|
|
|
UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector); |
|
|
|
|
pixItem->setSelected(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return pixItem; |
|
|
|
@ -1088,8 +1091,8 @@ UBItem *UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QStri |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
mActiveScene->scaleToFitDocumentSize(svgItem, true, UBSettings::objectInControlViewMargin); |
|
|
|
|
svgItem->setSelected(true); |
|
|
|
|
UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector); |
|
|
|
|
svgItem->setSelected(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return svgItem; |
|
|
|
|