diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-11-25 04:41:25 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-11-25 04:41:25 (GMT) |
commit | 4e8ee5429339ec3c56656858ec7edc8ca726bd5c (patch) | |
tree | adfef7f98a80d97d367e3bf53f87af09a37d3fdc /src/declarative/graphicsitems | |
parent | 3570cb083def4c91d147ceab561ea449646ab515 (diff) | |
download | Qt-4e8ee5429339ec3c56656858ec7edc8ca726bd5c.zip Qt-4e8ee5429339ec3c56656858ec7edc8ca726bd5c.tar.gz Qt-4e8ee5429339ec3c56656858ec7edc8ca726bd5c.tar.bz2 |
Test for pixmap property of Image.
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicsimage.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsimage.cpp b/src/declarative/graphicsitems/qmlgraphicsimage.cpp index 9d59796..38df0c7 100644 --- a/src/declarative/graphicsitems/qmlgraphicsimage.cpp +++ b/src/declarative/graphicsitems/qmlgraphicsimage.cpp @@ -171,6 +171,7 @@ void QmlGraphicsImagePrivate::setPixmap(const QPixmap &pixmap) q->setImplicitWidth(pix.width()); q->setImplicitHeight(pix.height()); + status = pix.isNull() ? QmlGraphicsImageBase::Null : QmlGraphicsImageBase::Ready; q->update(); emit q->pixmapChanged(); |