Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlscriptstring_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant
4
5#ifndef QQMLSCRIPTSTRING_P_H
6#define QQMLSCRIPTSTRING_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
20#include <QtQml/qqmlcontext.h>
21#include <QtCore/private/qglobal_p.h>
22
23QT_BEGIN_NAMESPACE
24
25class Q_QML_EXPORT QQmlScriptStringPrivate : public QSharedData
26{
27public:
28 QQmlScriptStringPrivate() : context(nullptr), scope(nullptr), bindingId(-1), lineNumber(0), columnNumber(0),
29 numberValue(0), isStringLiteral(false), isNumberLiteral(false) {}
30
31 //for testing
32 static const QQmlScriptStringPrivate* get(const QQmlScriptString &script);
33
34 static QQmlScriptString create(const QString &script, QQmlContext *context, QObject *scope);
35
36 QQmlContext *context;
37 QObject *scope;
38 QString script;
39 int bindingId;
40 quint16 lineNumber;
41 quint16 columnNumber;
42 double numberValue;
43 bool isStringLiteral;
44 bool isNumberLiteral;
45};
46
47QT_END_NAMESPACE
48
49#endif // QQMLSCRIPTSTRING_P_H
void expressionChanged() override
QV4::ReturnedValue v4value(bool *isUndefined=nullptr)
QVariant value(bool *isUndefined=nullptr)
QString expressionIdentifier() const override
~QQmlExpressionPrivate() override
friend class QQmlEnginePrivate