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