|
|
@ -816,7 +816,7 @@ void UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QString |
|
|
|
img.loadFromData(pData); |
|
|
|
img.loadFromData(pData); |
|
|
|
QPixmap pix = QPixmap::fromImage(img); |
|
|
|
QPixmap pix = QPixmap::fromImage(img); |
|
|
|
|
|
|
|
|
|
|
|
UBGraphicsPixmapItem* pixItem = mActiveScene->addPixmap(pix, pPos, 1.); |
|
|
|
UBGraphicsPixmapItem* pixItem = mActiveScene->addPixmap(pix, NULL, pPos, 1.); |
|
|
|
pixItem->setSourceUrl(sourceUrl); |
|
|
|
pixItem->setSourceUrl(sourceUrl); |
|
|
|
|
|
|
|
|
|
|
|
if (isBackground) |
|
|
|
if (isBackground) |
|
|
@ -1986,7 +1986,7 @@ void UBBoardController::processMimeData(const QMimeData* pMimeData, const QPoint |
|
|
|
// validate that the image is really an image, webkit does not fill properly the image mime data
|
|
|
|
// validate that the image is really an image, webkit does not fill properly the image mime data
|
|
|
|
if (pix.width() != 0 && pix.height() != 0) |
|
|
|
if (pix.width() != 0 && pix.height() != 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
mActiveScene->addPixmap(pix, pPos, 1.); |
|
|
|
mActiveScene->addPixmap(pix, NULL, pPos, 1.); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|