summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlengine_p.h
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-07-09 07:10:11 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-07-09 07:10:11 (GMT)
commit5b56189c9a6c322fa595b716a9f17e39a35bcbc0 (patch)
tree2e8b4fc397d631207aa32a8c68c94100a54f0f61 /src/declarative/qml/qmlengine_p.h
parent888f57107e698731c4a1dd2c46745c6293b2222e (diff)
parent7343bbb230161d563b0226011e4519f695fdc593 (diff)
downloadQt-5b56189c9a6c322fa595b716a9f17e39a35bcbc0.zip
Qt-5b56189c9a6c322fa595b716a9f17e39a35bcbc0.tar.gz
Qt-5b56189c9a6c322fa595b716a9f17e39a35bcbc0.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Conflicts: src/declarative/qml/qmlengine.cpp
Diffstat (limited to 'src/declarative/qml/qmlengine_p.h')
-rw-r--r--src/declarative/qml/qmlengine_p.h78
1 files changed, 5 insertions, 73 deletions
diff --git a/src/declarative/qml/qmlengine_p.h b/src/declarative/qml/qmlengine_p.h
index ca65e3e..9a8b9fb 100644
--- a/src/declarative/qml/qmlengine_p.h
+++ b/src/declarative/qml/qmlengine_p.h
@@ -103,11 +103,12 @@ public:
QScriptValue propertyObject(const QScriptString &propName, QObject *, uint id = 0);
struct CapturedProperty {
- CapturedProperty(QObject *o, int n)
- : object(o), notifyIndex(n) {}
+ CapturedProperty(QObject *o, int c, int n)
+ : object(o), coreIndex(c), notifyIndex(n) {}
CapturedProperty(const QmlMetaProperty &);
QObject *object;
+ int coreIndex;
int notifyIndex;
};
QPODVector<CapturedProperty> capturedProperties;
@@ -128,6 +129,8 @@ public:
QScriptEngine scriptEngine;
+ QUrl baseUrl;
+
template<class T>
struct SimpleList {
SimpleList()
@@ -168,23 +171,6 @@ public:
}
};
-
-class BindExpressionProxy : public QObject
-{
-Q_OBJECT
-public:
- BindExpressionProxy(QmlExpression *be)
- :e(be)
- {
- }
-
-private:
- QmlExpression *e;
-
-private Q_SLOTS:
- void changed();
-};
-
class QmlScriptClass : public QScriptClass
{
public:
@@ -246,60 +232,6 @@ public:
const QScriptValue &value);
};
-class QmlExpressionLog
-{
-public:
- QmlExpressionLog();
- QmlExpressionLog(const QmlExpressionLog &);
- ~QmlExpressionLog();
-
- QmlExpressionLog &operator=(const QmlExpressionLog &);
-
- void setTime(quint32);
- quint32 time() const;
-
- QString expression() const;
- void setExpression(const QString &);
-
- QStringList warnings() const;
- void addWarning(const QString &);
-
- QVariant result() const;
- void setResult(const QVariant &);
-
-private:
- quint32 m_time;
- QString m_expression;
- QVariant m_result;
- QStringList m_warnings;
-};
-
-class QmlExpressionPrivate
-{
-public:
- QmlExpressionPrivate(QmlExpression *);
- QmlExpressionPrivate(QmlExpression *, const QString &expr);
- QmlExpressionPrivate(QmlExpression *, void *expr, QmlRefCount *rc);
- ~QmlExpressionPrivate();
-
- QmlExpression *q;
- QmlContext *ctxt;
- QString expression;
- QmlBasicScript sse;
- void *sseData;
- BindExpressionProxy *proxy;
- QObject *me;
- bool trackChange;
-
- QUrl fileName;
- int line;
-
- quint32 id;
-
- void addLog(const QmlExpressionLog &);
- QList<QmlExpressionLog> *log;
-};
-
QT_END_NAMESPACE
#endif // QMLENGINE_P_H