diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-03-08 05:26:30 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-03-09 05:47:00 (GMT) |
commit | 4367951cbb4a0ddb739724878dc9a1cabad5a773 (patch) | |
tree | 75ec265505c522eda16ee97ccc2db5440bd3b8e5 /src/declarative/util/qdeclarativeview.cpp | |
parent | 173994419413e89e6b1c7ab3cf58dff82f1e5789 (diff) | |
download | Qt-4367951cbb4a0ddb739724878dc9a1cabad5a773.zip Qt-4367951cbb4a0ddb739724878dc9a1cabad5a773.tar.gz Qt-4367951cbb4a0ddb739724878dc9a1cabad5a773.tar.bz2 |
Make QDeclarativeItem NOTIFY signals canonical
Task-number: QTBUG-7193
Reviewed-by: akennedy
Diffstat (limited to 'src/declarative/util/qdeclarativeview.cpp')
-rw-r--r-- | src/declarative/util/qdeclarativeview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/util/qdeclarativeview.cpp b/src/declarative/util/qdeclarativeview.cpp index cd67aeb..218b587 100644 --- a/src/declarative/util/qdeclarativeview.cpp +++ b/src/declarative/util/qdeclarativeview.cpp @@ -447,8 +447,8 @@ void QDeclarativeView::setRootObject(QObject *obj) QPerformanceLog::clear(); d->root = item; d->qmlRoot = item; - connect(item, SIGNAL(widthChanged()), this, SLOT(sizeChanged())); - connect(item, SIGNAL(heightChanged()), this, SLOT(sizeChanged())); + connect(item, SIGNAL(widthChanged(qreal)), this, SLOT(sizeChanged())); + connect(item, SIGNAL(heightChanged(qreal)), this, SLOT(sizeChanged())); if (d->initialSize.height() <= 0 && d->qmlRoot->width() > 0) d->initialSize.setWidth(d->qmlRoot->width()); if (d->initialSize.height() <= 0 && d->qmlRoot->height() > 0) |