diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-20 06:06:19 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-20 08:33:23 (GMT) |
commit | 86529642cfdc5cc5a94b735042d0807e3b57e9e1 (patch) | |
tree | 3df356de955a131abfed2c84db4f91abf639a583 /src/declarative/qml/qmlboundsignal.cpp | |
parent | 275d2a37c0c7179e7f34cc467192a8838705d7c2 (diff) | |
download | Qt-86529642cfdc5cc5a94b735042d0807e3b57e9e1.zip Qt-86529642cfdc5cc5a94b735042d0807e3b57e9e1.tar.gz Qt-86529642cfdc5cc5a94b735042d0807e3b57e9e1.tar.bz2 |
Rework expression stuff to use a more efficient notify handler
Diffstat (limited to 'src/declarative/qml/qmlboundsignal.cpp')
-rw-r--r-- | src/declarative/qml/qmlboundsignal.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlboundsignal.cpp b/src/declarative/qml/qmlboundsignal.cpp index 9779e46..9af4003 100644 --- a/src/declarative/qml/qmlboundsignal.cpp +++ b/src/declarative/qml/qmlboundsignal.cpp @@ -53,14 +53,14 @@ QT_BEGIN_NAMESPACE int QmlBoundSignal::evaluateIdx = -1; QmlBoundSignal::QmlBoundSignal(QmlContext *ctxt, const QString &val, QObject *me, int idx, QObject *parent) -: QmlExpressionObject(ctxt, val, me, false), _idx(idx) +: QmlExpression(ctxt, val, me), _idx(idx) { - // A cached evaluation of the QmlExpressionObject::value() slot index. + // A cached evaluation of the QmlExpression::value() slot index. // // This is thread safe. Although it may be updated by two threads, they // will both set it to the same value - so the worst thing that can happen // is that they both do the work to figure it out. Boo hoo. - if (evaluateIdx == -1) evaluateIdx = QmlExpressionObject::staticMetaObject.indexOfMethod("value()"); + if (evaluateIdx == -1) evaluateIdx = QmlExpression::staticMetaObject.indexOfMethod("value()"); setTrackChange(false); QFx_setParent_noEvent(this, parent); |