aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltyperegistrar/foreign/private/foreign_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmltyperegistrar/foreign/private/foreign_p.h')
-rw-r--r--tests/auto/qml/qmltyperegistrar/foreign/private/foreign_p.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/qml/qmltyperegistrar/foreign/private/foreign_p.h b/tests/auto/qml/qmltyperegistrar/foreign/private/foreign_p.h
new file mode 100644
index 0000000000..ed23d78284
--- /dev/null
+++ b/tests/auto/qml/qmltyperegistrar/foreign/private/foreign_p.h
@@ -0,0 +1,18 @@
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#ifndef FOREIGN_P_H
+#define FOREIGN_P_H
+
+#include <QtCore/qobject.h>
+
+// qmltyperegistrar will assume this file is reachable under <private/foreign_p.h>
+// See the trick in tst_qmltyperegistrar's CMakeLists.txt to turn on the --private-includes option.
+class ForeignPrivate : public QObject
+{
+ Q_OBJECT
+Q_SIGNALS:
+ void happens();
+};
+
+#endif // FOREIGN_P_H