Examples: Do not use import version numbers anymore
Pick-to: 6.4 Change-Id: I1f4d4920bb9d132a846ac2dbcfdb8b660759d540 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
ec582ef0b9
commit
b7f448f864
|
@ -210,7 +210,7 @@ Item {
|
|||
selectByMouse: true
|
||||
wrapMode: TextEdit.WordWrap
|
||||
|
||||
text: "import QtQuick 2.0\nImage {\n id: smile\n x: 360 * Math.random()\n y: 40 * Math.random() \n source: 'images/face-smile.png'\n NumberAnimation on opacity { \n to: 0; duration: 1500\n }\n Component.onCompleted: smile.destroy(1500);\n}"
|
||||
text: "import QtQuick\nImage {\n id: smile\n x: 360 * Math.random()\n y: 40 * Math.random() \n source: 'images/face-smile.png'\n NumberAnimation on opacity { \n to: 0; duration: 1500\n }\n Component.onCompleted: smile.destroy(1500);\n}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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: root
|
||||
|
|
|
@ -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
|
||||
|
||||
Image {
|
||||
width: 200
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Window 2.12
|
||||
import QtQuick
|
||||
import QtQuick.Window
|
||||
|
||||
Window {
|
||||
visible: true
|
||||
|
|
|
@ -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: clock
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import TimeExample 1.0 // import types from the plugin
|
||||
import TimeExample // import types from the plugin
|
||||
|
||||
Clock { // this class is defined in QML (imports/TimeExample/Clock.qml)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
// ![0]
|
||||
import People 1.0
|
||||
import People
|
||||
|
||||
Person {
|
||||
name: "Bob Jones"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import People 1.0
|
||||
import QtQuick 2.0 // For QColor
|
||||
import People
|
||||
import QtQuick // For QColor
|
||||
|
||||
//! [begin]
|
||||
BirthdayParty {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import People 1.0
|
||||
import QtQuick 2.0 // For QColor
|
||||
import People
|
||||
import QtQuick // For QColor
|
||||
|
||||
// ![0]
|
||||
BirthdayParty {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import People 1.0
|
||||
import People
|
||||
|
||||
// ![0]
|
||||
BirthdayParty {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import People 1.0
|
||||
import People
|
||||
|
||||
// ![0]
|
||||
BirthdayParty {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import People 1.0
|
||||
import People
|
||||
|
||||
// ![0]
|
||||
QLineEdit {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import People 1.0
|
||||
import QtQuick 2.0 // For QColor
|
||||
import People
|
||||
import QtQuick // For QColor
|
||||
|
||||
// ![0]
|
||||
BirthdayParty {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
// ![0]
|
||||
import QtQuick 2.0
|
||||
import People 1.0
|
||||
import QtQuick
|
||||
import People
|
||||
|
||||
BirthdayParty {
|
||||
host: Person {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import People 1.0
|
||||
import People
|
||||
|
||||
// ![0]
|
||||
BirthdayParty {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import People 1.0
|
||||
import QtQuick 2.0 // For QColor
|
||||
import People
|
||||
import QtQuick // For QColor
|
||||
|
||||
BirthdayParty {
|
||||
// ![0]
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import People 1.0
|
||||
import QtQuick 2.0 // For QColor
|
||||
import People
|
||||
import QtQuick // For QColor
|
||||
|
||||
// ![0]
|
||||
BirthdayParty {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import Charts 1.0
|
||||
import QtQuick 2.0
|
||||
import Charts
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 300; height: 200
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import Charts 1.0
|
||||
import QtQuick 2.0
|
||||
import Charts
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 300; height: 200
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import Charts 1.0
|
||||
import QtQuick 2.0
|
||||
import Charts
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 300; height: 200
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import Charts 1.0
|
||||
import QtQuick 2.0
|
||||
import Charts
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 300; height: 200
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
//![0]
|
||||
import Charts 1.0
|
||||
import QtQuick 2.0
|
||||
import Charts
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
width: 300; height: 200
|
||||
|
|
|
@ -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 Charts 1.0
|
||||
import QtQuick
|
||||
import Charts
|
||||
|
||||
Item {
|
||||
width: 300; height: 200
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.4
|
||||
import QtTest 1.1
|
||||
import QtQuick
|
||||
import QtTest
|
||||
|
||||
TestCase {
|
||||
name: "BasicTests"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.4
|
||||
import QtTest 1.1
|
||||
import QtQuick
|
||||
import QtTest
|
||||
|
||||
Rectangle {
|
||||
id: foo
|
||||
|
|
|
@ -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
|
||||
import shared as Examples
|
||||
|
||||
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.2
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: window
|
||||
|
|
|
@ -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 QtQuick.Particles 2.0
|
||||
import QtQuick
|
||||
import QtQuick.Particles
|
||||
|
||||
Item {
|
||||
id: window
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQml 2.0
|
||||
import QtQuick 2.0
|
||||
import QtQml
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: window
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2019 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: focusRect
|
||||
|
|
|
@ -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: myRect
|
||||
|
|
|
@ -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: 320; height: 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
|
||||
|
||||
Rectangle {
|
||||
id: page
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQml 2.0
|
||||
import QtQuick 2.0
|
||||
import QtQml
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: container
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQml 2.15
|
||||
import QtQml.Models 2.15
|
||||
import QtQuick 2.0
|
||||
import QtQml
|
||||
import QtQml.Models
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: window
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQml 2.0
|
||||
import QtQuick 2.0
|
||||
import QtQml
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: window
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQml 2.0
|
||||
import QtQuick 2.0
|
||||
import QtQml
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: window
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQml 2.0
|
||||
import QtQuick 2.0
|
||||
import QtQml
|
||||
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
|
||||
|
||||
/*
|
||||
This is exactly the same as states.qml, except that we have appended
|
||||
|
|
|
@ -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
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
|
|
@ -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
|
||||
Image {
|
||||
source: "quit.png"
|
||||
scale: quitMouse.pressed ? 0.8 : 1.0
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [imports]
|
||||
import QtQuick 2.2
|
||||
import QtQuick.Window 2.1
|
||||
import QtQuick
|
||||
import QtQuick.Window
|
||||
//! [imports]
|
||||
|
||||
//! [0]
|
||||
|
|
|
@ -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 Example 1.0
|
||||
import QtQuick
|
||||
import Example
|
||||
|
||||
Rectangle {
|
||||
height: 480
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import TextBalloon 1.0
|
||||
import QtQuick
|
||||
import TextBalloon
|
||||
|
||||
Item {
|
||||
height: 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
|
||||
|
||||
Item {
|
||||
id: progressbar
|
||||
|
|
|
@ -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
|
||||
import "content"
|
||||
|
||||
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
|
||||
|
||||
Item {
|
||||
id: scrollBar
|
||||
|
|
|
@ -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: 640
|
||||
|
|
|
@ -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
|
||||
|
||||
FocusScope {
|
||||
id: focusScope
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//![0]
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: toggleswitch
|
||||
|
|
|
@ -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
|
||||
import "content"
|
||||
|
||||
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
|
||||
|
||||
Image {
|
||||
property alias model: view.model
|
||||
|
|
|
@ -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
|
||||
import "content"
|
||||
|
||||
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
|
||||
|
||||
Item {
|
||||
id: tabWidget
|
||||
|
|
|
@ -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
|
||||
|
||||
TabWidget {
|
||||
id: tabs
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// Copyright (C) 2018 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.12
|
||||
import QtQml.Models 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import Qt.labs.qmlmodels 1.0
|
||||
import QtQuick
|
||||
import QtQml.Models
|
||||
import QtQuick.Layouts
|
||||
import Qt.labs.qmlmodels
|
||||
import shared
|
||||
|
||||
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
|
||||
|
||||
//! [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]
|
||||
DropArea {
|
||||
|
|
|
@ -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: root
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2019 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.14
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: icon
|
||||
|
|
|
@ -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
|
||||
import "ImageProviderCore" // import the plugin that registers the color image provider
|
||||
|
||||
//![0]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2015 Canonical Limited and/or its subsidiary(-ies)
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
import "ImageResponseProviderCore"
|
||||
|
||||
Column {
|
||||
|
|
|
@ -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
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: container
|
||||
|
|
|
@ -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 QtQuick.Particles 2.0
|
||||
import QtQuick
|
||||
import QtQuick.Particles
|
||||
|
||||
Rectangle {
|
||||
width: 360
|
||||
|
|
|
@ -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 QtQuick.Particles 2.0
|
||||
import QtQuick
|
||||
import QtQuick.Particles
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
|
|
@ -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 QtQuick.Particles 2.0
|
||||
import QtQuick
|
||||
import QtQuick.Particles
|
||||
|
||||
ParticleSystem {
|
||||
id: sys
|
||||
|
|
|
@ -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 QtQuick.Particles 2.0
|
||||
import QtQuick
|
||||
import QtQuick.Particles
|
||||
|
||||
Rectangle {
|
||||
color: "goldenrod"
|
||||
|
|
|
@ -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 QtQuick.Particles 2.0
|
||||
import QtQuick
|
||||
import QtQuick.Particles
|
||||
|
||||
Rectangle {
|
||||
color: "black"
|
||||
|
|
|
@ -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 QtQuick.Particles 2.0
|
||||
import QtQuick
|
||||
import QtQuick.Particles
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
|
|
@ -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 QtQuick.Particles 2.0
|
||||
import QtQuick
|
||||
import QtQuick.Particles
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
|
|
@ -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 QtQuick.Particles 2.0
|
||||
import QtQuick
|
||||
import QtQuick.Particles
|
||||
|
||||
Rectangle {
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ Rectangle {
|
|||
onGrabChanged: function (transition, point) {
|
||||
if (transition === 0x10) { // GrabExclusive
|
||||
console.log(point.id, "grabbed @", point.position)
|
||||
Qt.createQmlObject("import QtQuick 2.0; Rectangle { opacity: 0.5; border.color: 'red'; radius: 8; width: radius * 2; height: radius * 2; " +
|
||||
Qt.createQmlObject("import QtQuick; Rectangle { opacity: 0.5; border.color: 'red'; radius: 8; width: radius * 2; height: radius * 2; " +
|
||||
"x: " + (point.position.x - 8) + "; y: " + (point.position.y - 8) + "}",
|
||||
rect3, "touchpoint" + point.id);
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: button
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
FocusScope {
|
||||
id: checkbox
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
// Minimal slider implementation
|
||||
Rectangle {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.2
|
||||
import QtQuick.Particles 2.0
|
||||
import fbitem 1.0
|
||||
import QtQuick
|
||||
import QtQuick.Particles
|
||||
import fbitem
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.8
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [1]
|
||||
import QtQuick 2.0
|
||||
import CustomGeometry 1.0
|
||||
import QtQuick
|
||||
import CustomGeometry
|
||||
//! [1] //! [2]
|
||||
Item {
|
||||
width: 300
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2020 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.2
|
||||
import ExampleCustomMaterial 1.0
|
||||
import QtQuick
|
||||
import ExampleCustomMaterial
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [1]
|
||||
import QtQuick 2.0
|
||||
import D3D11UnderQML 1.0
|
||||
import QtQuick
|
||||
import D3D11UnderQML
|
||||
|
||||
Item {
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
import SceneGraphRendering 1.0
|
||||
import SceneGraphRendering
|
||||
|
||||
Item {
|
||||
width: 400
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
|
||||
import Graph 1.0
|
||||
import Graph
|
||||
|
||||
Item {
|
||||
width: 800
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright (C) 2019 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
//! [1]
|
||||
import MetalTextureImport 1.0
|
||||
import MetalTextureImport
|
||||
//! [1]
|
||||
|
||||
Rectangle {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [1]
|
||||
import QtQuick 2.0
|
||||
import MetalUnderQML 1.0
|
||||
import QtQuick
|
||||
import MetalUnderQML
|
||||
|
||||
Item {
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [1]
|
||||
import QtQuick 2.0
|
||||
import OpenGLUnderQML 1.0
|
||||
import QtQuick
|
||||
import OpenGLUnderQML
|
||||
|
||||
Item {
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [1]
|
||||
import QtQuick 2.0
|
||||
import Spinner 1.0
|
||||
import QtQuick
|
||||
import Spinner
|
||||
|
||||
Rectangle {
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2014 Gunnar Sletta <gunnar@sletta.org>
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.2
|
||||
import SceneGraphRendering 1.0
|
||||
import QtQuick
|
||||
import SceneGraphRendering
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright (C) 2019 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick
|
||||
//! [1]
|
||||
import VulkanTextureImport 1.0
|
||||
import VulkanTextureImport
|
||||
//! [1]
|
||||
|
||||
Rectangle {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
//! [1]
|
||||
import QtQuick 2.0
|
||||
import VulkanUnderQML 1.0
|
||||
import QtQuick
|
||||
import VulkanUnderQML
|
||||
|
||||
Item {
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Window 2.1
|
||||
import QtQuick
|
||||
import QtQuick.Window
|
||||
|
||||
Item {
|
||||
id: container
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
|
||||
ListModel {
|
||||
id: flickrImages
|
||||
|
|
|
@ -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
|
||||
|
||||
Text {
|
||||
SystemPalette { id: palette }
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQml 2.12
|
||||
import QtQml.Models 2.12
|
||||
import QtQuick 2.12
|
||||
import QtQml
|
||||
import QtQml.Models
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
id: container
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: slider
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Window 2.1
|
||||
import QtQuick
|
||||
import QtQuick.Window
|
||||
|
||||
Item {
|
||||
id: tabWidget
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
import QtQuick 2.1
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue