aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlscriptstring_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlscriptstring_p.h')
-rw-r--r--src/qml/qml/qqmlscriptstring_p.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlscriptstring_p.h b/src/qml/qml/qqmlscriptstring_p.h
index 15786c7aae..97c02d21d7 100644
--- a/src/qml/qml/qqmlscriptstring_p.h
+++ b/src/qml/qml/qqmlscriptstring_p.h
@@ -42,14 +42,19 @@
#ifndef QQMLSCRIPTSTRING_P_H
#define QQMLSCRIPTSTRING_P_H
+#include "qqmlscriptstring.h"
#include <QtQml/qqmlcontext.h>
QT_BEGIN_NAMESPACE
-class QQmlScriptStringPrivate : public QSharedData
+class Q_AUTOTEST_EXPORT QQmlScriptStringPrivate : public QSharedData
{
public:
- QQmlScriptStringPrivate() : context(0), scope(0), bindingId(-1), lineNumber(-1), columnNumber(-1) {}
+ QQmlScriptStringPrivate() : context(0), scope(0), bindingId(-1), lineNumber(-1), columnNumber(-1),
+ numberValue(0), isStringLiteral(false), isNumberLiteral(false) {}
+
+ //for testing
+ static const QQmlScriptStringPrivate* get(const QQmlScriptString &script);
QQmlContext *context;
QObject *scope;
@@ -57,6 +62,9 @@ public:
int bindingId;
int lineNumber;
int columnNumber;
+ double numberValue;
+ bool isStringLiteral;
+ bool isNumberLiteral;
};
QT_END_NAMESPACE