diff options
| author | Kai Köhne <kai.koehne@qt.io> | 2023-06-27 10:44:25 +0200 |
|---|---|---|
| committer | Kai Köhne <kai.koehne@qt.io> | 2023-06-30 08:44:45 +0200 |
| commit | cd3c7efe4ba2f0b3d4a80db980db0d74ffd8e7cc (patch) | |
| tree | 28eaef603b19c5148bef3be4de731512b547dc5d /src/quick/doc/snippets/qml/item | |
| parent | 3b2213250869c9ef28321c7e2deb0d9dfec2c4d9 (diff) | |
Doc: Don't use versioned Qt imports in QML snippets
We don't promote versioned imports anymore in Qt 6.
Patch done by
find . -path "*/snippets/*.qml" -exec perl -pi -e "s/import Qt([\.a-zA-Z]*) \d\.\d+/import Qt\\1/g" {} ;
Pick-to: 6.5 6.6
Change-Id: I20a5bf52f7cdd99124626f85ce9794af74382977
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quick/doc/snippets/qml/item')
4 files changed, 6 insertions, 6 deletions
diff --git a/src/quick/doc/snippets/qml/item/childrenRect.qml b/src/quick/doc/snippets/qml/item/childrenRect.qml index bd7261074e..750a6fa125 100644 --- a/src/quick/doc/snippets/qml/item/childrenRect.qml +++ b/src/quick/doc/snippets/qml/item/childrenRect.qml @@ -1,7 +1,7 @@ // Copyright (C) 2020 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause -import QtQuick 2.0 +import QtQuick //! [local] Item { diff --git a/src/quick/doc/snippets/qml/item/containmentMask-circle-js.qml b/src/quick/doc/snippets/qml/item/containmentMask-circle-js.qml index 2865c1d067..9aa8ddcc75 100644 --- a/src/quick/doc/snippets/qml/item/containmentMask-circle-js.qml +++ b/src/quick/doc/snippets/qml/item/containmentMask-circle-js.qml @@ -1,8 +1,8 @@ // Copyright (C) 2021 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause -import QtQml 2.12 -import QtQuick 2.12 +import QtQml +import QtQuick //![0] Rectangle { diff --git a/src/quick/doc/snippets/qml/item/containmentMask-shape.qml b/src/quick/doc/snippets/qml/item/containmentMask-shape.qml index 607c0e148a..171437c380 100644 --- a/src/quick/doc/snippets/qml/item/containmentMask-shape.qml +++ b/src/quick/doc/snippets/qml/item/containmentMask-shape.qml @@ -1,8 +1,8 @@ // Copyright (C) 2021 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause -import QtQuick 2.12 -import QtQuick.Shapes 1.12 +import QtQuick +import QtQuick.Shapes //![0] Rectangle { diff --git a/src/quick/doc/snippets/qml/item/itemGrab.qml b/src/quick/doc/snippets/qml/item/itemGrab.qml index f4a5b0ba15..dc5a52a123 100644 --- a/src/quick/doc/snippets/qml/item/itemGrab.qml +++ b/src/quick/doc/snippets/qml/item/itemGrab.qml @@ -1,7 +1,7 @@ // Copyright (C) 2014 Jolla Ltd, author: <gunnar.sletta@jollamobile.com> // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause -import QtQuick 2.4 +import QtQuick Item { width: 320 |
