pix->load(qmlEngine(this)
, fullPathUrl
, QDeclarativePixmap::Cache | QDeclarativePixmap::Asynchronous);
- pix->connectFinished(this, SIGNAL(imageLoaded()));
+ if (pix->isLoading())
+ pix->connectFinished(this, SIGNAL(imageLoaded()));
}
}
/*!
function test_self() {
var ctx = canvas.getContext('2d');
ctx.reset();
+ ignoreWarning("QImage::scaled: Image is a null image");
+ ignoreWarning("QImage::scaled: Image is a null image");
ctx.fillStyle = '#0f0';
ctx.fillRect(0, 0, 50, 50);
function test_nonfinite() {
var ctx = canvas.getContext('2d');
ctx.reset();
-
+ ignoreWarning("QImage::scaled: Image is a null image");
+ ignoreWarning("QImage::scaled: Image is a null image");
+ ignoreWarning("QImage::scaled: Image is a null image");
+ ignoreWarning("QImage::scaled: Image is a null image");
ctx.fillStyle = '#0f0';
ctx.fillRect(0, 0, 100, 50);
var red = 'red.png';