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" {} ;
Change-Id: I20a5bf52f7cdd99124626f85ce9794af74382977
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit cd3c7efe4b
)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
eae1fbc6af
commit
5be95086ea
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//! [main_qml]
|
||||
import QtQuick 2.6
|
||||
import QtQuick.Controls 2.0
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
//![import]
|
||||
import io.qt.examples.backend 1.0
|
||||
//![import]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//! [parent begin]
|
||||
Rectangle {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Text {
|
||||
id: textElement
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: rect
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle { width: 80; height: 50; color: "red" }
|
||||
//![0]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 300; height: 55
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Text {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 100; height: 100
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Item {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
ListView {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: container
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
import "componentCreation.js" as MyScript
|
||||
|
||||
Rectangle {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: parentItem
|
||||
|
@ -12,7 +12,7 @@ Rectangle {
|
|||
function createIt() {
|
||||
//![0]
|
||||
const newObject = Qt.createQmlObject(`
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
color: "red"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: container
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![parent begin]
|
||||
Rectangle {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [imports]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
import com.nokia.qml.mymodule 1.0
|
||||
//! [imports]
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [imports]
|
||||
import QtQuick 2.0 as QtLibrary
|
||||
import QtQuick as QtLibrary
|
||||
import "../MyComponents" as MyComponents
|
||||
import com.nokia.qml.mymodule 1.0 as MyModule
|
||||
//! [imports]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [import]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
//! [import]
|
||||
|
||||
Item {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
import "script.js" as MyScript
|
||||
|
||||
Item {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
import "script.mjs" as MyScript
|
||||
|
||||
Item {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
// exampleFive.qml
|
||||
import QtQuick 2.0
|
||||
import Qt.example 1.0
|
||||
import QtQuick
|
||||
import Qt.example
|
||||
import "exampleFour.js" as ExampleFourJs // use factory from example four
|
||||
|
||||
QtObject {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
// exampleFour.qml
|
||||
import QtQuick 2.0
|
||||
import Qt.example 1.0
|
||||
import QtQuick
|
||||
import Qt.example
|
||||
import "exampleFour.js" as ExampleFourJs
|
||||
|
||||
QtObject {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
// exampleOne.qml
|
||||
import QtQuick 2.0
|
||||
import Qt.example 1.0
|
||||
import QtQuick
|
||||
import Qt.example
|
||||
|
||||
QtObject {
|
||||
property AvatarExample a;
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
// exampleThree.qml
|
||||
import QtQuick 2.0
|
||||
import Qt.example 1.0
|
||||
import QtQuick
|
||||
import Qt.example
|
||||
import "exampleThree.js" as ExampleThreeJs
|
||||
|
||||
QtObject {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
// exampleTwo.qml
|
||||
import QtQuick 2.0
|
||||
import Qt.example 1.0
|
||||
import QtQuick
|
||||
import Qt.example
|
||||
|
||||
QtObject {
|
||||
property AvatarExample a;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//! [parent begin]
|
||||
Rectangle {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//! [document]
|
||||
// A.qml
|
||||
import QtQuick 2.15
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
//! [document]
|
||||
// B.qml
|
||||
import QtQuick 2.15
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
A.MyInlineComponent {}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//! [document]
|
||||
// Images.qml
|
||||
import QtQuick 2.15
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
component LabeledImage: Column {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
//! [document]
|
||||
// LabeledImageBox.qml
|
||||
import QtQuick 2.15
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
property alias caption: image.caption
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 240; height: 320;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 240; height: 320;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 240; height: 320;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
property alias text: textItem.text
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Text { text: qsTr("hello") }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Text {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Text { text: qsTrId("hello_id") }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Text { text: qsTranslate("CustomContext", "hello") }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Item {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Item {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Item {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Item {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 480
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Item {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Item {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Item {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
// MyItem.qml
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Text { text: applicationData.getCurrentDateTime() }
|
||||
//![0]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
Text {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
// MyItem.qml
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Text { text: currentDateTime }
|
||||
//![0]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
// MyItem.qml
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
function myQmlFunction(msg: string) : string {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![start]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 100; height: 100
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
// MyItem.qml
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
property int someNumber: 100
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
// MyItem.qml
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: item
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//![0]
|
||||
// MyItem.qml
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
QtObject {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//! [document]
|
||||
//contents of Button.qml
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//! [parent begin]
|
||||
Rectangle {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 175; height: 350
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//! [parent begin]
|
||||
Rectangle {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//! [document]
|
||||
//contents of focusbutton.qml
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//! [parent begin]
|
||||
FocusScope {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQml.Models 2.2
|
||||
import QtQuick
|
||||
import QtQml.Models
|
||||
|
||||
Rectangle {
|
||||
width: 200; height: 100
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQml.Models 2.2
|
||||
import QtQuick
|
||||
import QtQml.Models
|
||||
|
||||
ListView {
|
||||
id: view
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQml.Models 2.2
|
||||
import QtQuick
|
||||
import QtQml.Models
|
||||
|
||||
Rectangle {
|
||||
width: 200; height: 100
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//! [0]
|
||||
Package {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQml.Models 2.1
|
||||
import QtQuick
|
||||
import QtQml.Models
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 200; height: 250
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 200; height: 200
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 200; height: 200
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 200; height: 200
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
ListModel {
|
||||
id: fruitModel
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//![file]
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Window 2.12
|
||||
import Qt.labs.qmlmodels 1.0
|
||||
import QtQuick
|
||||
import QtQuick.Window
|
||||
import Qt.labs.qmlmodels
|
||||
|
||||
Window {
|
||||
width: 400
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//![file]
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.5
|
||||
import Qt.labs.qmlmodels 1.0
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import Qt.labs.qmlmodels
|
||||
|
||||
ApplicationWindow {
|
||||
width: 400
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//![file]
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Window 2.12
|
||||
import Qt.labs.qmlmodels 1.0
|
||||
import QtQuick
|
||||
import QtQuick.Window
|
||||
import Qt.labs.qmlmodels
|
||||
|
||||
Window {
|
||||
width: 400
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 300; height: 300
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2018 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
//![0]
|
||||
Column {
|
||||
Image { source: "image://colors/yellow" }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 100
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2018 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 640
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2018 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 640
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2019 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.14
|
||||
import Qt.labs.animation 1.0
|
||||
import QtQuick
|
||||
import Qt.labs.animation
|
||||
|
||||
Item {
|
||||
width: 320; height: 480
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: button
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 400
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 640
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2019 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.14
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 170; height: 120
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: container
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: window
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// examples/quick/imageelements/animatedimage
|
||||
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: animation.width; height: animation.height + 8
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
|
||||
//! [parent begin]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.2
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: rect
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2023 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: page
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: page
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: page
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: page
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2019 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.14
|
||||
import Qt.labs.animation 1.0
|
||||
import QtQuick
|
||||
import Qt.labs.animation
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 100; height: 100
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
width: 160; height: 250
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//! [document]
|
||||
Column {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [document]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 310; height: 170
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
//! [document]
|
||||
Column {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 200; height: 200
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 200; height: 200
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue