diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-09-22 08:50:50 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-09-22 08:50:50 (GMT) |
commit | 8d5a395e176239b7e3ee8822cb251b2e631c21de (patch) | |
tree | 60dee6cd158820944b892183c0d77a1af47fab97 /src/declarative/qml/qmlexpression_p.h | |
parent | 65e7073bb151bd9281b2d0be53f0c13cce90f3c0 (diff) | |
download | Qt-8d5a395e176239b7e3ee8822cb251b2e631c21de.zip Qt-8d5a395e176239b7e3ee8822cb251b2e631c21de.tar.gz Qt-8d5a395e176239b7e3ee8822cb251b2e631c21de.tar.bz2 |
Slight simplification of parameterized signals
Diffstat (limited to 'src/declarative/qml/qmlexpression_p.h')
-rw-r--r-- | src/declarative/qml/qmlexpression_p.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlexpression_p.h b/src/declarative/qml/qmlexpression_p.h index 997bf8d..501e5d8 100644 --- a/src/declarative/qml/qmlexpression_p.h +++ b/src/declarative/qml/qmlexpression_p.h @@ -93,6 +93,7 @@ public: PreTransformedQtScriptData = 2 }; + void init(QmlContext *, const QString &, QObject *); void init(QmlContext *, void *, QmlRefCount *, QObject *); @@ -108,8 +109,9 @@ public: QString fileName; int line; + QVariant value(QObject *secondaryScope = 0); QVariant evalSSE(); - QVariant evalQtScript(); + QVariant evalQtScript(QObject *secondaryScope); struct SignalGuard : public QGuard<QObject> { SignalGuard() : isDuplicate(false), notifyIndex(-1) {} @@ -132,6 +134,10 @@ public: int guardListLength; void updateGuards(const QPODVector<QmlEnginePrivate::CapturedProperty> &properties); void clearGuards(); + + static QmlExpressionPrivate *get(QmlExpression *expr) { + return static_cast<QmlExpressionPrivate *>(QObjectPrivate::get(expr)); + } }; QT_END_NAMESPACE |