6#include <QtQml/qqmlcomponent.h>
7#include <QtQml/qqmlfile.h>
8#include <private/qqmlengine_p.h>
9#include <private/qqmlcomponent_p.h>
10#include <private/qqmlloggingcategory_p.h>
11#include <private/qqmlstringconverters_p.h>
12#if QT_CONFIG(qml_locale)
13#include <private/qqmllocale_p.h>
15#include <private/qqmldelayedcallqueue_p.h>
18#include <private/qqmldebugconnector_p.h>
19#include <private/qqmldebugserviceinterfaces_p.h>
20#include <private/qqmlglobal_p.h>
22#include <private/qqmlplatform_p.h>
24#include <private/qv4engine_p.h>
25#include <private/qv4functionobject_p.h>
26#include <private/qv4include_p.h>
27#include <private/qv4context_p.h>
28#include <private/qv4stringobject_p.h>
29#include <private/qv4dateobject_p.h>
30#include <private/qv4mm_p.h>
31#include <private/qv4jsonobject_p.h>
32#include <private/qv4objectproto_p.h>
33#include <private/qv4qobjectwrapper_p.h>
34#include <private/qv4stackframe_p.h>
36#include <QtCore/qstring.h>
37#include <QtCore/qdatetime.h>
38#include <QtCore/qcryptographichash.h>
39#include <QtCore/qrect.h>
40#include <QtCore/qsize.h>
41#include <QtCore/qpoint.h>
42#include <QtCore/qurl.h>
43#include <QtCore/qfile.h>
44#include <QtCore/qcoreapplication.h>
45#include <QtCore/qloggingcategory.h>
57#define THROW_TYPE_ERROR_WITH_MESSAGE(msg) \
59 return scope.engine->throwTypeError(QString::fromUtf8(msg)); \
274QtObject::Contexts QtObject::getContexts()
const
287 return {
context, effectiveContext};
314 return qjsvalue_cast<QObject *>(
value) !=
nullptr;
405 if (color1.userType() == QMetaType::QString) {
411 }
else if (color1.userType() != QMetaType::QColor) {
417 if (color2.
userType() == QMetaType::QString) {
423 }
else if (color2.
userType() != QMetaType::QColor) {
428 return color1 == color2;
479 fontSpecifier,
QMetaType(QMetaType::QFont));
485 "no valid font subproperties specified"));
492 result.setProperty(
i,
e->toScriptValue(parameter));
501template<
typename T,
typename ...Others>
504 addParameters<T>(
e,
result,
i, parameter);
508template<
typename ...T>
566 const QMetaType metaType(QMetaType::QMatrix4x4);
588 if (
value.isObject()) {
596 "not a valid matrix4x4 values array"));
615 double m21,
double m22,
double m23,
double m24,
616 double m31,
double m32,
double m33,
double m34,
617 double m41,
double m42,
double m43,
double m44)
const
620 m11, m12, m13, m14, m21, m22, m23, m24,
621 m31, m32, m33, m34, m41, m42, m43, m44);
627 if (
color.isString()) {
633 if (
v.userType() != QMetaType::QColor) {
751 return formatThis.toString(
format);
794 <<
string <<
"is a date/time string being passed to formatDate()."
795 <<
"You should only pass date strings to formatDate().";
818 return formatDateTimeObjectUsingDateFormat(
date,
format);
847#if QT_CONFIG(qml_locale)
851 return locale.toString(
date, formatType);
864 return locale.toString(qDate.value(), formatType);
899 <<
string <<
"is a date/time string being passed to formatTime()."
900 <<
"You should only pass time strings to formatTime().";
937 return formatDateTimeObjectUsingDateFormat(
time,
format);
953#if QT_CONFIG(qml_locale)
957 return locale.toString(
time, formatType);
970 return locale.toString(qTime.value(), formatType);
1090 return std::nullopt;
1121#if QT_CONFIG(qml_locale)
1125 return locale.toString(
dateTime, formatType);
1184 return ctxt->resolvedUrl(
url);
1205 return data->outerContext->resolvedUrl(
url);
1314 "Can only be called on a QML engine."));
1323 errorstr +=
QLatin1String(
"Qt.createQmlObject(): failed to create object: ");
1329 for (
int ii = 0; ii < errors.
size(); ++ii) {
1337 qmlerrors->put(ii, qmlerror);
1353 if (
context->isPragmaLibraryContext())
1354 effectiveContext =
engine->rootContext();
1356 effectiveContext =
context->asQQmlContext();
1373 Q_ASSERT(typeData->isCompleteOrError());
1379 Scope scope(v4Engine());
1391 if (!effectiveContext->
isValid()) {
1393 "in an invalid context"));
1405 for (
int ii = 0; ii < functions.
size(); ++ii) {
1512 auto [
context, effectiveContext] = getContexts();
1543 auto [
context, effectiveContext] = getContexts();
1550 QStringLiteral(
"Invalid arguments; did you swap mode and parent"));
1558#if QT_CONFIG(translation)
1559QString QtObject::uiLanguage()
const
1562 return e->uiLanguage();
1566void QtObject::setUiLanguage(
const QString &uiLanguage)
1569 e->setUiLanguage(uiLanguage);
1580#if QT_CONFIG(qml_locale)
1601QLocale QtObject::locale()
const
1617 this->bindingFunction.
set(internalClass->engine, bindingFunction->d());
1623 if (
frame->v4Function)
1680 "binding(): argument (binding expression) must be a function")));
1689 m_engine->delayedCallQueue()->addUniquelyAndExecuteLater(m_engine,
args);
1706 return m_application;
1754 for (
int i = 0;
i < stackTrace.
size();
i++) {
1758 if (
frame.column >= 0) {
1769 stack += stackFrame;
1786 if (
val->isManaged() &&
val->managed()->isArrayLike())
1787 if (!alreadySeen.
contains(
val->objectValue()->d()))
1812 loggingCategory =
category->category();
1821 for (
int i =
start, ei = argc;
i < ei; ++
i) {
1826 if (argv[
i].isManaged() && argv[
i].
managed()->isArrayLike())
1829 result.append(argv[
i].toQStringNoThrow());
1835 if (!loggingCategory)
1836 loggingCategory = v4->
qmlEngine() ? &lcQml() : &lcJs();
1846 logger.debug(
"%s",
result.toUtf8().constData());
1850 logger.info(
"%s",
result.toUtf8().constData());
1854 logger.warning(
"%s",
result.toUtf8().constData());
1858 logger.critical(
"%s",
result.toUtf8().constData());
1898 logger.
warning(
"Cannot start profiling because debug service is disabled. Start with -qmljsdebugger=port:XXXXX.");
1900 service->startProfiling(v4->
jsEngine());
1901 logger.
debug(
"Profiling started.");
1919 logger.
warning(
"Ignoring console.profileEnd(): the debug service is disabled.");
1921 service->stopProfiling(v4->
jsEngine());
1922 logger.
debug(
"Profiling ended.");
1990 frame->function().toUtf8().constData())
2011 for (
int i = 1, ei = argc;
i < ei; ++
i) {
2022 frame->function().toUtf8().constData())
2044 #if QT_CONFIG(translation)
2077#if QT_CONFIG(translation)
2100 if (!argv[0].isString())
2102 if (!argv[1].isString())
2104 if ((argc > 2) && !argv[2].isString())
2113 if (argc >
i && argv[
i].isString()) {
2114 qWarning(
"qsTranslate(): specifying the encoding as fourth argument is deprecated");
2123 if (ep->propertyCapture)
2124 ep->propertyCapture->captureTranslation();
2193 int length = lastDot - (lastSlash + 1);
2223 if (!argv[0].isString())
2225 if ((argc > 1) && !argv[1].isString())
2227 if ((argc > 2) && !argv[2].
isNumber())
2233 const int n = argc > 2 ? argv[2].
toInt32() : -1;
2236 if (ep->propertyCapture)
2237 ep->propertyCapture->captureTranslation();
2310 if (!argv[0].isString())
2312 if (argc > 1 && !argv[1].
isNumber())
2320 if (ep->propertyCapture)
2321 ep->propertyCapture->captureTranslation();
2323 return Encode(scope.engine->newString(
qtTrId(argv[0].toQStringNoThrow().
toUtf8().constData(),
n)));
2354 b->engine()->memoryManager->runGC();
2370 if (
arg->isInteger())
2372 else if (
arg->isDouble())
2374 else if (
arg->isBoolean())
2403#include "moc_qqmlbuiltinfunctions_p.cpp"
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
static QByteArray fromBase64(const QByteArray &base64, Base64Options options=Base64Encoding)
QByteArray toHex(char separator='\0') const
Returns a hex encoded copy of the byte array.
static QString translate(const char *context, const char *key, const char *disambiguation=nullptr, int n=-1)
\threadsafe
static QByteArray hash(QByteArrayView data, Algorithm method)
Returns the hash of data using method.
\inmodule QtCore\reentrant
QTime time() const
Returns the time part of the datetime.
QDateTime toLocalTime() const
Returns a copy of this datetime converted to local time.
bool isValid() const
Returns true if this datetime represents a definite moment, otherwise false.
QDate date() const
Returns the date part of the datetime.
\inmodule QtCore \reentrant
constexpr bool isValid() const
Returns true if this date is valid; otherwise returns false.
\inmodule QtCore \reentrant
QString completeBaseName() const
Returns the complete base name of the file without the path.
static QJSEnginePrivate * get(QJSEngine *e)
The QJSEngine class provides an environment for evaluating JavaScript code.
QV4::ExecutionEngine * handle() const
void throwError(const QString &message)
Throws a run-time error (exception) with the given message.
@ GarbageCollectionExtension
static QJSValue fromReturnedValue(QV4::ReturnedValue d)
The QJSValue class acts as a container for Qt/JavaScript data types.
bool isObject() const
Returns true if this QJSValue is of the Object type; otherwise returns false.
qsizetype size() const noexcept
const_reference at(qsizetype i) const noexcept
bool isInfoEnabled() const
Returns true if informational messages should be shown for this category; false otherwise.
bool isWarningEnabled() const
Returns true if warning messages should be shown for this category; false otherwise.
bool isCriticalEnabled() const
Returns true if critical messages should be shown for this category; false otherwise.
const char * categoryName() const
Returns the name of the category.
bool isDebugEnabled() const
Returns true if debug messages should be shown for this category; false otherwise.
void void Q_DECL_COLD_FUNCTION void warning(const char *msg,...) const Q_ATTRIBUTE_FORMAT_PRINTF(2
Logs a warning message specified with format msg.
void void Q_DECL_COLD_FUNCTION void Q_DECL_COLD_FUNCTION void critical(const char *msg,...) const Q_ATTRIBUTE_FORMAT_PRINTF(2
Logs a critical message specified with format msg.
void debug(const char *msg,...) const Q_ATTRIBUTE_FORMAT_PRINTF(2
Logs a debug message specified with format msg.
QObject * parent() const
Returns a pointer to the parent object.
\inmodule QtCore\reentrant
virtual QVariant lighter(const QVariant &, qreal)
virtual QVariant tint(const QVariant &, const QVariant &)
virtual QVariant fromRgbF(double, double, double, double)
virtual QVariant fromHsvF(double, double, double, double)
virtual QVariant fromHslF(double, double, double, double)
virtual QVariant darker(const QVariant &, qreal)
virtual QVariant alpha(const QVariant &, qreal)
static QQmlComponentPrivate * get(QQmlComponent *c)
QQmlGuardedContextData creationContext
void fromTypeData(const QQmlRefPointer< QQmlTypeData > &data)
The QQmlComponent class encapsulates a QML component definition.
CompilationMode
Specifies whether the QQmlComponent should load the component immediately, or asynchonously.
static QQmlRefPointer< QQmlContextData > get(QQmlContext *context)
The QQmlContext class defines a context within a QML engine.
bool isValid() const
Returns whether the context is valid.
quint32 explicitIndestructibleSet
static QQmlData * get(QObjectPrivate *priv, bool create)
void sendExit(int retCode=0)
QQmlTypeLoader typeLoader
static QQmlEnginePrivate * get(QQmlEngine *e)
The QQmlEngine class provides an environment for instantiating QML components.
The QQmlError class encapsulates a QML error.
static QString urlToLocalFileOrQrc(const QString &)
If url is a local file returns a path suitable for passing to QFile.
virtual bool openUrlExternally(const QUrl &)
virtual QStringList fontFamilies()
virtual QQmlApplication * application(QObject *parent)
virtual QObject * styleHints()
virtual QObject * inputMethod()
QQmlRefPointer< QQmlTypeData > getType(const QUrl &unNormalizedUrl, Mode mode=PreferSynchronous)
Returns a QQmlTypeData for the specified url.
static QVariant createValueType(const QJSValue &, QMetaType)
\inmodule QtCore\reentrant
bool remove(const T &value)
bool contains(const T &value) const
iterator insert(const T &value)
\macro QT_RESTRICTED_CAST_FROM_ASCII
qsizetype lastIndexOf(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QByteArray toUtf8() const &
\inmodule QtCore \reentrant
bool isValid() const
Returns true if the time is valid; otherwise returns false.
QString fileName(ComponentFormattingOptions options=FullyDecoded) const
bool isRelative() const
Returns true if the URL is relative; otherwise returns false.
bool isValid() const
Returns true if the URL is non-empty and valid; otherwise returns false.
bool isEmpty() const
Returns true if the URL has no data; otherwise returns false.
static QJSValue method_include(QV4::ExecutionEngine *engine, const QUrl &url, const QJSValue &callbackFunction)
bool isValid() const
Returns true if the storage type of this variant is not QMetaType::UnknownType; otherwise returns fal...
QString toString() const
Returns the variant as a QString if the variant has a userType() including, but not limited to:
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Q_INVOKABLE QVariant darker(const QJSValue &color, double factor=2.0) const
\qmlmethod color Qt::darker(color baseColor, real factor)
Q_INVOKABLE QString formatDate(const QDate &date, const QString &format) const
Q_INVOKABLE bool colorEqual(const QVariant &lhs, const QVariant &rhs) const
\qmlmethod color Qt::colorEqual(color lhs, string rhs)
Q_INVOKABLE void callLater(QQmlV4Function *args)
Q_INVOKABLE QVariant font(const QJSValue &fontSpecifier) const
\qmlmethod font Qt::font(object fontSpecifier)
Q_INVOKABLE QString formatTime(const QTime &time, const QString &format) const
Q_INVOKABLE bool isQtObject(const QJSValue &value) const
\qmlmethod bool Qt::isQtObject(object)
Q_INVOKABLE QUrl url(const QUrl &url) const
\qmlmethod url Qt::url(url url)
Q_INVOKABLE QVariant hsla(double h, double s, double l, double a=1) const
\qmlmethod color Qt::hsla(real hue, real saturation, real lightness, real alpha)
Q_INVOKABLE QVariant hsva(double h, double s, double v, double a=1) const
Q_INVOKABLE void quit() const
\qmlmethod Qt::quit()
Q_INVOKABLE void exit(int retCode) const
\qmlmethod Qt::exit(int retCode)
QQmlApplication * application
Q_INVOKABLE QSizeF size(double width, double height) const
\qmlmethod size Qt::size(real width, real height)
Q_INVOKABLE QVariant quaternion(double scalar, double x, double y, double z) const
\qmlmethod quaternion Qt::quaternion(real scalar, real x, real y, real z)
Q_INVOKABLE QVariant matrix4x4() const
\qmlmethod matrix4x4 Qt::matrix4x4()
Q_INVOKABLE QVariant lighter(const QJSValue &color, double factor=1.5) const
\qmlmethod color Qt::lighter(color baseColor, real factor)
static QtObject * create(QQmlEngine *, QJSEngine *jsEngine)
Q_INVOKABLE QVariant vector3d(double x, double y, double z) const
\qmlmethod vector3d Qt::vector3d(real x, real y, real z)
Q_INVOKABLE QQmlComponent * createComponent(const QUrl &url, QObject *parent) const
\qmlmethod Component Qt::createComponent(url url, enumeration mode, QtObject parent)
Q_INVOKABLE QVariant tint(const QJSValue &baseColor, const QJSValue &tintColor) const
\qmlmethod color Qt::tint(color baseColor, color tintColor)
Q_INVOKABLE QVariant rgba(double r, double g, double b, double a=1) const
\qmlmethod color Qt::rgba(real red, real green, real blue, real alpha)
Q_INVOKABLE QString md5(const QString &data) const
\qmlmethod string Qt::md5(data) Returns a hex string of the md5 hash of data.
Q_INVOKABLE QString btoa(const QString &data) const
\qmlmethod string Qt::btoa(data) Binary to ASCII - this function returns a base64 encoding of data.
Q_INVOKABLE QRectF rect(double x, double y, double width, double height) const
\qmlmethod rect Qt::rect(real x, real y, real width, real height)
Q_INVOKABLE QVariant alpha(const QJSValue &baseColor, double value) const
\qmlmethod color Qt::alpha(color baseColor, real value)
Q_INVOKABLE bool openUrlExternally(const QUrl &url) const
\qmlmethod bool Qt::openUrlExternally(url target)
Q_INVOKABLE QUrl resolvedUrl(const QUrl &url) const
\qmlmethod url Qt::resolvedUrl(url url)
Q_INVOKABLE QVariant color(const QString &name) const
\qmlmethod color Qt::color(string name)
Q_INVOKABLE QJSValue binding(const QJSValue &function) const
\qmlmethod Qt::binding(function)
Q_INVOKABLE QVariant vector4d(double x, double y, double z, double w) const
\qmlmethod vector4d Qt::vector4d(real x, real y, real z, real w)
Q_INVOKABLE QStringList fontFamilies() const
\qmlmethod list<string> Qt::fontFamilies()
Q_INVOKABLE QJSValue include(const QString &url, const QJSValue &callback=QJSValue()) const
Q_INVOKABLE QString atob(const QString &data) const
\qmlmethod string Qt::atob(data) ASCII to binary - this function decodes the base64 encoded data stri...
Q_INVOKABLE QObject * createQmlObject(const QString &qml, QObject *parent, const QUrl &url=QUrl(QStringLiteral("inline"))) const
\qmlmethod object Qt::createQmlObject(string qml, object parent, string filepath)
Q_INVOKABLE QString formatDateTime(const QDateTime &date, const QString &format) const
Q_INVOKABLE QPointF point(double x, double y) const
\qmlmethod point Qt::point(real x, real y)
Q_INVOKABLE QVariant vector2d(double x, double y) const
\qmlmethod vector2d Qt::vector2d(real x, real y)
const QLoggingCategory & category()
[1]
QJSManagedValue managed(std::move(val), &engine)
Q_QML_PRIVATE_EXPORT QV4::ReturnedValue locale(QV4::ExecutionEngine *engine, const QString &localeName)
Provides locale specific properties and formatted data.
Q_QML_PRIVATE_EXPORT QVariant colorFromString(const QString &, bool *ok=nullptr)
Combined button and popup list for selecting options.
int toUtf8(char16_t u, OutputPtr &dst, InputPtr &src, InputPtr end)
\qmltype Particle \inqmlmodule QtQuick.Particles
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction function
DBusConnection const char DBusError * error
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
static QV4::ExecutionEngine * v4Engine(QV4::Value *d)
#define Q_LOGGING_CATEGORY(name,...)
#define qCWarning(category,...)
constexpr const T & qBound(const T &min, const T &val, const T &max)
static bool isNumber(char s)
constexpr T qAbs(const T &t)
GLint GLfloat GLfloat GLfloat v2
GLboolean GLboolean GLboolean b
GLsizei const GLfloat * v
[13]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLenum GLsizei length
GLuint GLsizei const GLchar * message
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLint GLsizei GLsizei GLenum format
GLfloat GLfloat GLfloat GLfloat h
GLsizei const GLchar *const * path
static qreal component(const QPointF &point, unsigned int i)
#define THROW_TYPE_ERROR_WITH_MESSAGE(msg)
static QTime dateTimeToTime(const QDateTime &dateTime)
static QString serializeArray(Object *array, ExecutionEngine *v4, QSet< QV4::Heap::Object * > &alreadySeen)
static QVariant constructFromJSValue(QJSEngine *e, QMetaType type, T... parameters)
void addParameters< double >(QJSEngine *, QJSValue &result, int i, double parameter)
static std::optional< QDate > dateFromString(const QString &string, QV4::ExecutionEngine *engine)
\qmlmethod string Qt::formatDate(datetime date, variant format, variant localeFormatOption)
static ReturnedValue writeToConsole(const FunctionObject *b, const Value *argv, int argc, ConsoleLogTypes logType, bool printStack=false)
void addParameters(QJSEngine *e, QJSValue &result, int i, T parameter)
static QString jsStack(QV4::ExecutionEngine *engine)
static std::optional< QTime > timeFromString(const QString &string, QV4::ExecutionEngine *engine)
\qmlmethod string Qt::formatTime(datetime time, variant format, variant localeFormatOption)
static std::optional< QDateTime > dateTimeFromString(const QString &string, QV4::ExecutionEngine *engine)
\qmlmethod string Qt::formatDateTime(datetime dateTime, variant format, variant localeFormatOption)
static QVariant colorVariantFromJSValue(const QJSValue &color, bool *ok)
Q_AUTOTEST_EXPORT QQmlGuiProvider * QQml_guiProvider(void)
Q_AUTOTEST_EXPORT QQmlColorProvider * QQml_colorProvider(void)
#define qPrintable(string)
QLatin1StringView QLatin1String
#define QStringLiteral(str)
static double elapsed(qint64 after, qint64 before)
Q_CORE_EXPORT QString qtTrId(const char *id, int n=-1)
#define THROW_GENERIC_ERROR(str)
#define DEFINE_OBJECT_VTABLE(classname)
if(qFloatDistance(a, b)<(1<< 7))
[0]
QUrl url("example.com")
[constructor-url-reference]
engine globalObject().setProperty("myObject"
\inmodule QtCore \reentrant
static ReturnedValue method_profile(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_warn(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_log(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_count(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_info(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_timeEnd(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_exception(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_assert(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_time(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_error(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_profileEnd(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_trace(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static QDate dateTimeToDate(const QDateTime &dateTime)
static QDateTime stringToDateTime(const QString &string, ExecutionEngine *engine)
static constexpr ReturnedValue undefined()
CppStackFrame * currentStackFrame
QQmlRefPointer< QQmlContextData > callingQmlContext() const
Heap::String * newString(const QString &s=QString())
Object * stringPrototype() const
ReturnedValue throwError(const Value &value)
Heap::Object * newObject()
int consoleCountHelper(const QString &file, quint16 line, quint16 column)
QJSEngine * jsEngine() const
void startTimer(const QString &timerName)
QQmlEngine * qmlEngine() const
qint64 stopTimer(const QString &timerName, bool *wasRunning)
Heap::ArrayObject * newArrayObject(int count=0)
ReturnedValue throwTypeError()
Heap::Object * newErrorObject(const Value &value)
Function * function() const
Heap::ExecutionContext * scope() const
static void init(Object *globalObject, QJSEngine::Extensions extensions)
static ReturnedValue method_gc(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_string_arg(const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
ExecutionEngine * engine() const
void defineDefaultProperty(StringOrSymbol *name, const Value &value, PropertyAttributes attributes=Attr_Data|Attr_NotEnumerable)
bool set(StringOrSymbol *name, const Value &v, ThrowOnFailure shouldThrow)
QQmlSourceLocation currentLocation() const
Heap::FunctionObject * bindingFunction() const
QML_NEARLY_ALWAYS_INLINE ReturnedValue asReturnedValue() const
constexpr ReturnedValue asReturnedValue() const
static constexpr Value fromInt32(int i)
QString toQString() const
QString toQStringNoThrow() const
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent