Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
quicktestutil_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 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 QUICKTESTUTIL_P_H
5#define QUICKTESTUTIL_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 <QtQuickTest/private/quicktestglobal_p.h>
19
20#include <QtCore/qobject.h>
21#include <QtQml/qqml.h>
22#include <QtQml/qjsvalue.h>
23
25
27{
29 Q_PROPERTY(bool printAvailableFunctions READ printAvailableFunctions NOTIFY printAvailableFunctionsChanged)
30 Q_PROPERTY(int dragThreshold READ dragThreshold NOTIFY dragThresholdChanged)
31 QML_NAMED_ELEMENT(TestUtil)
33public:
35 ~QuickTestUtil() override {}
36
37 bool printAvailableFunctions() const;
38 int dragThreshold() const;
39
40 Q_INVOKABLE void populateClipboardText(int lineCount);
41
45
46public Q_SLOTS:
47
48 QJSValue typeName(const QVariant& v) const;
49 bool compare(const QVariant& act, const QVariant& exp) const;
50
51 QJSValue callerFile(int frameIndex = 0) const;
52 int callerLine(int frameIndex = 0) const;
53};
54
56
57#endif // QUICKTESTUTIL_P_H
The QJSValue class acts as a container for Qt/JavaScript data types.
Definition qjsvalue.h:31
\inmodule QtCore
Definition qobject.h:90
\inmodule QtCore
Definition qvariant.h:64
void printAvailableFunctionsChanged()
~QuickTestUtil() override
QuickTestUtil(QObject *parent=nullptr)
void dragThresholdChanged()
Combined button and popup list for selecting options.
const char * typeName
GLsizei const GLfloat * v
[13]
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_INVOKABLE
#define Q_SLOTS
#define Q_SIGNALS
static int compare(quint64 a, quint64 b)
#define Q_QUICK_TEST_PRIVATE_EXPORT
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent