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
qjsengine_p.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 QJSENGINE_P_H
5#define QJSENGINE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/private/qobject_p.h>
19#include <QtCore/qmutex.h>
20#include <QtCore/qproperty.h>
21#include "qjsengine.h"
22#include "private/qtqmlglobal_p.h"
23#include <private/qqmlmetatype_p.h>
24
26
28
29namespace QV4 {
30struct ExecutionEngine;
31}
32
33class Q_QML_EXPORT QJSEnginePrivate : public QObjectPrivate
34{
35 Q_DECLARE_PUBLIC(QJSEngine)
36
37public:
38 static QJSEnginePrivate* get(QJSEngine*e) { return e->d_func(); }
39 static const QJSEnginePrivate* get(const QJSEngine*e) { return e->d_func(); }
41
42 QJSEnginePrivate() = default;
43 ~QJSEnginePrivate() override;
44
45 static void addToDebugServer(QJSEngine *q);
46 static void removeFromDebugServer(QJSEngine *q);
47
48 void uiLanguageChanged() { Q_Q(QJSEngine); if (q) q->uiLanguageChanged(); }
50};
51
53
54#endif // QJSENGINE_P_H
static QJSEnginePrivate * get(QJSEngine *e)
Definition qjsengine_p.h:38
static const QJSEnginePrivate * get(const QJSEngine *e)
Definition qjsengine_p.h:39
Q_OBJECT_BINDABLE_PROPERTY(QJSEnginePrivate, QString, uiLanguage, &QJSEnginePrivate::uiLanguageChanged)
QJSEnginePrivate()=default
void uiLanguageChanged()
Definition qjsengine_p.h:48
The QJSEngine class provides an environment for evaluating JavaScript code.
Definition qjsengine.h:26
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
static QDBusError::ErrorType get(const char *name)
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259