6#include <QtCore/qpointer.h>
7#include <QtQml/qqmlengine.h>
8#include <QtQml/qqmlcomponent.h>
9#include <QtQuick/qquickwindow.h>
10#include <QtQuick/qquickitem.h>
11#include <QtGui/qguiapplication.h>
13#include <private/qquickpixmapcache_p.h>
14#include <private/qqmldebugconnector_p.h>
15#include <private/qversionedpacket_p.h>
57 if (m_currentUrl.
isEmpty() &&
path.endsWith(
".qml")) {
58 if (
path.startsWith(
':'))
69 packet >>
path >> entries;
144 packet << static_cast<qint8>(
Fps)
157#include "moc_qqmlpreviewservice.cpp"
The QJSEngine class provides an environment for evaluating JavaScript code.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
const QByteArray & data() const
Returns a reference to the raw packet data.
void messageToClient(const QString &name, const QByteArray &message)
void detachedFromEngine(QJSEngine *)
const QString & name() const
void attachedToEngine(QJSEngine *)
The QQmlEngine class provides an environment for instantiating QML components.
void whitelist(const QUrl &url)
void zoom(qreal newFactor)
QQuickItem * currentRootItem()
void fps(const FpsInfo &info)
void removeEngine(QQmlEngine *engine)
void error(const QString &message)
void addEngine(QQmlEngine *engine)
void loadUrl(const QUrl &url)
void forwardRequest(const QString &file)
void engineAboutToBeRemoved(QJSEngine *engine) override
QQuickItem * currentRootItem()
QQmlPreviewServiceImpl(QObject *parent=nullptr)
void file(const QString &file, const QByteArray &contents)
void directory(const QString &file, const QStringList &entries)
virtual ~QQmlPreviewServiceImpl()
void engineAboutToBeAdded(QJSEngine *engine) override
void forwardFps(const QQmlPreviewHandler::FpsInfo &frames)
static const QString s_key
void load(const QUrl &url)
void stateChanged(State state) override
void error(const QString &file)
void forwardError(const QString &error)
void messageReceived(const QByteArray &message) override
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
T * data() const noexcept
Returns the value of the pointer referenced by this object.
void reset(T *other=nullptr) noexcept(noexcept(Cleanup::cleanup(std::declval< T * >())))
Deletes the existing object it is pointing to (if any), and sets its pointer to other.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
static QUrl fromLocalFile(const QString &localfile)
Returns a QUrl representation of localFile, interpreted as a local file.
bool isEmpty() const
Returns true if the URL has no data; otherwise returns false.
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLsizei const GLchar *const * path
QQmlEngine * qmlEngine(const QObject *obj)
#define QStringLiteral(str)
QT_BEGIN_NAMESPACE typedef signed char qint8
QUrl url("example.com")
[constructor-url-reference]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent