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

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtdeclarative/src/quickcontrols/basic/qtquickcontrols2basicforeign_p.h