summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qdeclarativeview.cpp
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-03-08 05:26:30 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-03-09 05:47:00 (GMT)
commit4367951cbb4a0ddb739724878dc9a1cabad5a773 (patch)
tree75ec265505c522eda16ee97ccc2db5440bd3b8e5 /src/declarative/util/qdeclarativeview.cpp
parent173994419413e89e6b1c7ab3cf58dff82f1e5789 (diff)
downloadQt-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.cpp4
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)