|
|
|
@ -816,7 +816,7 @@ void UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QString |
|
|
|
|
img.loadFromData(pData); |
|
|
|
|
QPixmap pix = QPixmap::fromImage(img); |
|
|
|
|
|
|
|
|
|
UBGraphicsPixmapItem* pixItem = mActiveScene->addPixmap(pix, pPos, 1.); |
|
|
|
|
UBGraphicsPixmapItem* pixItem = mActiveScene->addPixmap(pix, NULL, pPos, 1.); |
|
|
|
|
pixItem->setSourceUrl(sourceUrl); |
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
if (pix.width() != 0 && pix.height() != 0) |
|
|
|
|
{ |
|
|
|
|
mActiveScene->addPixmap(pix, pPos, 1.); |
|
|
|
|
mActiveScene->addPixmap(pix, NULL, pPos, 1.); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|