Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmlscriptstring.h
Go to the documentation of this file.
1
// Copyright (C) 2016 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
4
#ifndef QQMLSCRIPTSTRING_H
5
#define QQMLSCRIPTSTRING_H
6
7
#include <QtQml/qtqmlglobal.h>
8
#include <QtQml/qqml.h>
9
#include <QtCore/qstring.h>
10
#include <QtCore/qshareddata.h>
11
#include <QtCore/qmetatype.h>
12
13
QT_BEGIN_NAMESPACE
14
15
16
class
QObject
;
17
class
QQmlContext
;
18
class
QQmlScriptStringPrivate
;
19
class
QQmlObjectCreator
;
20
namespace
QV4
{
21
struct
QObjectWrapper;
22
}
23
class
Q_QML_EXPORT
QQmlScriptString
24
{
25
Q_GADGET
26
public
:
27
QQmlScriptString
();
28
QQmlScriptString
(
const
QQmlScriptString
&);
29
~QQmlScriptString
();
30
31
QQmlScriptString
&operator=(
const
QQmlScriptString
&);
32
33
bool
operator==
(
const
QQmlScriptString
&)
const
;
34
bool
operator!=
(
const
QQmlScriptString
&)
const
;
35
36
bool
isEmpty()
const
;
37
38
bool
isUndefinedLiteral()
const
;
39
bool
isNullLiteral()
const
;
40
QString
stringLiteral()
const
;
41
qreal
numberLiteral(
bool
*
ok
)
const
;
42
bool
booleanLiteral(
bool
*
ok
)
const
;
43
44
private
:
45
QQmlScriptString
(
const
QString
&script,
QQmlContext
*
context
,
QObject
*scope);
46
QSharedDataPointer<QQmlScriptStringPrivate>
d
;
47
48
friend
class
QQmlObjectCreator
;
49
friend
class
QQmlScriptStringPrivate
;
50
friend
class
QQmlExpression
;
51
friend
class
QQmlBinding
;
52
friend
class
QQmlPropertyBinding
;
53
friend
struct
QV4::QObjectWrapper
;
54
};
55
56
QT_END_NAMESPACE
57
58
Q_DECLARE_METATYPE
(
QQmlScriptString
)
59
60
#endif
// QQMLSCRIPTSTRING_H
61
QObject
\inmodule QtCore
Definition
qobject.h:103
QQmlBinding
Definition
qqmlbinding_p.h:34
QQmlContext
The QQmlContext class defines a context within a QML engine.
Definition
qqmlcontext.h:25
QQmlExpression
The QQmlExpression class evaluates JavaScript in a QML context.
Definition
qqmlexpression.h:22
QQmlObjectCreator
Definition
qqmlobjectcreator_p.h:119
QQmlPropertyBinding
Definition
qqmlpropertybinding_p.h:59
QQmlScriptStringPrivate
Definition
qqmlscriptstring_p.h:25
QQmlScriptString
The QQmlScriptString class encapsulates a script and its context.
Definition
qqmlscriptstring.h:24
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
QV4
Definition
qv4debugservice.h:28
context
static void * context
Definition
qandroidaudiosource.cpp:42
operator!=
constexpr bool operator!=(const timespec &t1, const timespec &t2)
Definition
qcore_unix_p.h:110
Q_DECLARE_METATYPE
#define Q_DECLARE_METATYPE(TYPE)
Definition
qmetatype.h:1525
operator==
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
Definition
qrandom.cpp:1220
Q_GADGET
#define Q_GADGET
Definition
qtmetamacros.h:154
qreal
double qreal
Definition
qtypes.h:187
ok
bool ok
[2]
Definition
src_corelib_text_qbytearrayview.cpp:17
d
double d
Definition
src_corelib_text_qlocale.cpp:9
QV4::QObjectWrapper
Definition
qv4qobjectwrapper_p.h:119
qtdeclarative
src
qml
qml
qqmlscriptstring.h
Generated by
1.10.0