diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2012-03-21 16:28:32 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-26 07:24:29 +0200 |
commit | fa3ef5376acc69b147718f49eddb842fdd5d2dd2 (patch) | |
tree | a9757d4739982ca784053142e1312acc1064727a /src/qml/qml/qqmlproperty.cpp | |
parent | a329f246c02e2579f6a559c05240f63f0b5d5d3c (diff) |
Use QQmlAbstractBoundSignal where appropriate.
Prepare for the addition of another subclass.
Change-Id: I340f735503e661d9d735f3316a065f807294921b
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlproperty.cpp')
-rw-r--r-- | src/qml/qml/qqmlproperty.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlproperty.cpp b/src/qml/qml/qqmlproperty.cpp index 14778ce6c8..ebcf903ab3 100644 --- a/src/qml/qml/qqmlproperty.cpp +++ b/src/qml/qml/qqmlproperty.cpp @@ -928,7 +928,7 @@ QQmlPropertyPrivate::signalExpression(const QQmlProperty &that) for (int ii = 0; ii < children.count(); ++ii) { QObject *child = children.at(ii); - QQmlBoundSignal *signal = QQmlBoundSignal::cast(child); + QQmlAbstractBoundSignal *signal = qobject_cast<QQmlAbstractBoundSignal*>(child); if (signal && signal->index() == that.index()) return signal->expression(); } @@ -957,7 +957,7 @@ QQmlPropertyPrivate::setSignalExpression(const QQmlProperty &that, for (int ii = 0; ii < children.count(); ++ii) { QObject *child = children.at(ii); - QQmlBoundSignal *signal = QQmlBoundSignal::cast(child); + QQmlAbstractBoundSignal *signal = qobject_cast<QQmlAbstractBoundSignal*>(child); if (signal && signal->index() == that.index()) return signal->setExpression(expr); } |