6#include <QtQuickTest/private/qtestoptions_p.h>
7#include <QtQml/private/qqmltype_p.h>
8#include <QtQml/private/qqmlmetatype_p.h>
9#include <QtQml/private/qv4engine_p.h>
10#include <QtQml/private/qv4scopedvalue_p.h>
11#include <QtQml/private/qjsvalue_p.h>
13#include <QtGui/qguiapplication.h>
14#include <QtGui/qclipboard.h>
15#include <QtGui/qstylehints.h>
16#include <QtQml/qqmlengine.h>
34#if QT_CONFIG(clipboard)
35 QString fmt(u
"%1 bottles of beer on the wall, %1 bottles of beer; "
36 "take one down, pass it around, %2 bottles of beer on the wall."_s);
38 for (
int i = lineCount;
i > 0; --
i)
39 lines <<
fmt.arg(
i).arg(
i - 1);
52 while (!
type.isValid() &&
mo) {
54 mo =
mo->superClass();
76 QVector<QV4::StackFrame> stack = v4->
stackTrace(frameIndex + 2);
77 return (stack.size() > frameIndex + 1)
88 QVector<QV4::StackFrame> stack = v4->
stackTrace(frameIndex + 2);
89 if (stack.size() > frameIndex + 1)
90 return qAbs(stack.at(frameIndex + 1).line);
96#include "moc_quicktestutil_p.cpp"
static QClipboard * clipboard()
Returns the object for interacting with the clipboard.
static QStyleHints * styleHints()
Returns the application's style hints.
QV4::ExecutionEngine * handle() const
static QJSValue fromReturnedValue(QV4::ReturnedValue d)
The QJSValue class acts as a container for Qt/JavaScript data types.
The QQmlEngine class provides an environment for instantiating QML components.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool printAvailableFunctions
int callerLine(int frameIndex=0) const
bool compare(const QVariant &act, const QVariant &exp) const
Q_INVOKABLE void populateClipboardText(int lineCount)
QJSValue typeName(const QVariant &v) const
QJSValue callerFile(int frameIndex=0) const
Combined button and popup list for selecting options.
Q_TESTLIB_EXPORT bool printAvailableFunctions
constexpr T qAbs(const T &t)
GLsizei const GLfloat * v
[13]
QQmlEngine * qmlEngine(const QObject *obj)
QVideoFrameFormat::PixelFormat fmt
obj metaObject() -> className()
Heap::String * newString(char16_t c)
StackTrace stackTrace(int frameLimit=-1) const
ReturnedValue asReturnedValue() const