1// Copyright (C) 2020 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#ifndef QTQUICKCONTROLS2FOREIGN_P_H
4#define QTQUICKCONTROLS2FOREIGN_P_H
5
6#include <QtQml/qqml.h>
7#include <QtQuickTemplates2/private/qquickoverlay_p.h>
8#include <QtQuickTemplates2/private/qquicksplitview_p.h>
9
10QT_BEGIN_NAMESPACE
11
12//
13// W A R N I N G
14// -------------
15//
16// This file is not part of the Qt API. It exists purely as an
17// implementation detail. This header file may change from version to
18// version without notice, or even be removed.
19//
20// We mean it.
21//
22
23// These are necessary in order to use C++ types in a file where only QtQuick.Controls has been imported.
24// Control types like Button don't need this done for them, as each style module provides a Button type,
25// and QtQuick.Controls is a sort of alias for the active style import.
26
27struct QQuickOverlayAttachedForeign
28{
29 Q_GADGET
30 QML_NAMED_ELEMENT(Overlay)
31 QML_FOREIGN(QQuickOverlay)
32 QML_UNCREATABLE("")
33 QML_ADDED_IN_VERSION(2, 3)
34};
35
36struct QQuickSplitHandleAttachedForeign
37{
38 Q_GADGET
39 QML_NAMED_ELEMENT(SplitHandle)
40 QML_FOREIGN(QQuickSplitHandleAttached)
41 QML_UNCREATABLE("")
42 QML_ADDED_IN_VERSION(2, 13)
43};
44
45QT_END_NAMESPACE
46
47#endif // QTQUICKCONTROLS2FOREIGN_P_H
48

source code of qtdeclarative/src/quickcontrolsimpl/qtquickcontrols2foreign_p.h