Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QUICKTESTUTIL_P_H
6
#
define
QUICKTESTUTIL_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtQuickTest
/
private
/
quicktestglobal_p
.
h
>
20
21
#
include
<
QtCore
/
qobject
.
h
>
22
#
include
<
QtQml
/
qqml
.
h
>
23
#
include
<
QtQml
/
private
/
qqmlsignalnames_p
.
h
>
24
#
include
<
QtQml
/
qjsvalue
.
h
>
25
26
QT_BEGIN_NAMESPACE
27
28
class
Q_QMLTEST_EXPORT
QuickTestUtil
:
public
QObject
29
{
30
Q_OBJECT
31
Q_PROPERTY(
bool
printAvailableFunctions READ printAvailableFunctions NOTIFY printAvailableFunctionsChanged)
32
Q_PROPERTY(
int
dragThreshold READ dragThreshold NOTIFY dragThresholdChanged)
33
QML_NAMED_ELEMENT(TestUtil)
34
QML_ADDED_IN_VERSION(1, 0)
35
public
:
36
QuickTestUtil(QObject *parent =
nullptr
) :QObject(parent) {}
37
~QuickTestUtil() override {}
38
39
bool
printAvailableFunctions()
const
;
40
int
dragThreshold()
const
;
41
42
Q_INVOKABLE
void
populateClipboardText(
int
lineCount);
43
44
Q_SIGNALS:
45
void
printAvailableFunctionsChanged();
46
void
dragThresholdChanged();
47
48
public
Q_SLOTS:
49
50
QJSValue typeName(
const
QVariant& v)
const
;
51
bool
compare(
const
QVariant& act,
const
QVariant& exp)
const
;
52
53
QJSValue callerFile(
int
frameIndex = 0)
const
;
54
int
callerLine(
int
frameIndex = 0)
const
;
55
56
Q_REVISION(6, 7) QString signalHandlerName(
const
QString &signalName)
57
{
58
if
(QQmlSignalNames::isHandlerName(signalName))
59
return
signalName;
60
return
QQmlSignalNames::signalNameToHandlerName(signalName);
61
}
62
};
63
64
QT_END_NAMESPACE
65
66
#
endif
// QUICKTESTUTIL_P_H
QuickTestUtil
Definition
quicktestutil_p.h:29
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
qmltest
quicktestutil_p.h
Generated on
for Qt by
1.18.0