diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-03-08 02:28:32 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-03-08 02:32:41 (GMT) |
commit | 4ffb2a7a27ef5f06672e5f668e46d1657fa3e7ca (patch) | |
tree | fae95703c8451d7674c735ba926aec151fabaa8e /src/declarative/graphicsitems/qdeclarativeimage.cpp | |
parent | 23440d84ddf78755e77cea75956cd7445647230a (diff) | |
download | Qt-4ffb2a7a27ef5f06672e5f668e46d1657fa3e7ca.zip Qt-4ffb2a7a27ef5f06672e5f668e46d1657fa3e7ca.tar.gz Qt-4ffb2a7a27ef5f06672e5f668e46d1657fa3e7ca.tar.bz2 |
Optimize Rectangle, Image, and Text creation.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeimage.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeimage.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimage.cpp b/src/declarative/graphicsitems/qdeclarativeimage.cpp index 2739ab8..a20d6bc 100644 --- a/src/declarative/graphicsitems/qdeclarativeimage.cpp +++ b/src/declarative/graphicsitems/qdeclarativeimage.cpp @@ -127,7 +127,6 @@ QT_BEGIN_NAMESPACE QDeclarativeImage::QDeclarativeImage(QDeclarativeItem *parent) : QDeclarativeImageBase(*(new QDeclarativeImagePrivate), parent) { - connect(this, SIGNAL(pixmapChanged()), this, SLOT(updatePaintedGeometry())); } QDeclarativeImage::QDeclarativeImage(QDeclarativeImagePrivate &dd, QDeclarativeItem *parent) @@ -172,7 +171,7 @@ void QDeclarativeImagePrivate::setPixmap(const QPixmap &pixmap) status = pix.isNull() ? QDeclarativeImageBase::Null : QDeclarativeImageBase::Ready; q->update(); - emit q->pixmapChanged(); + q->pixmapChange(); } /*! @@ -384,4 +383,10 @@ void QDeclarativeImage::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWi } } +void QDeclarativeImage::pixmapChange() +{ + updatePaintedGeometry(); + QDeclarativeImageBase::pixmapChange(); +} + QT_END_NAMESPACE |