diff options
author | Mitch Curtis <[email protected]> | 2024-03-12 15:44:53 +0800 |
---|---|---|
committer | Mitch Curtis <[email protected]> | 2024-03-15 09:19:36 +0800 |
commit | e9f53d023d50a4367392db86c08843bbf10c947d (patch) | |
tree | 4fd49d86007d328d2e102067f1ddc417cbf86e76 /src/quickcontrols/basic/qtquickcontrols2basicforeign.cpp | |
parent | d5cd8ac31577f4feecb0934f30f58af25261b5b1 (diff) |
Use document imports of QtQuick.Controls.impl, not qmldir-imports
qmldir-imports are transitive, meaning that we were exposing all types
from QtQuick.Controls.impl each time QtQuick.Controls was imported.
This patch removes these transitive qmldir-imports by moving the
foreign type declarations for QQuickOverlay and
QQuickSplitHandleAttached into the Basic style (which is always
imported by every style as a final fallback).
Task-number: QTBUG-104768
Task-number: QTBUG-123103
Change-Id: Ia0ff778a88a38bb872730e055631dc924456d7be
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'src/quickcontrols/basic/qtquickcontrols2basicforeign.cpp')
-rw-r--r-- | src/quickcontrols/basic/qtquickcontrols2basicforeign.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/quickcontrols/basic/qtquickcontrols2basicforeign.cpp b/src/quickcontrols/basic/qtquickcontrols2basicforeign.cpp new file mode 100644 index 0000000000..7a5472e758 --- /dev/null +++ b/src/quickcontrols/basic/qtquickcontrols2basicforeign.cpp @@ -0,0 +1,10 @@ +// Copyright (C) 2024 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#include "qtquickcontrols2basicforeign_p.h" + +QT_BEGIN_NAMESPACE + +QT_END_NAMESPACE + +#include "moc_qtquickcontrols2basicforeign_p.cpp" |