QmlDesigner: Add missing item template sources for project storage

Fixes: QDS-14588
Change-Id: I434f0192023bf7a8158966c5a1775fa4780def75
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Miikka Heikkinen
2025-01-24 13:20:39 +02:00
parent 83530a2e27
commit a5986d9c6c
7 changed files with 179 additions and 4 deletions

View File

@@ -203,7 +203,7 @@ MetaInfo {
libraryIcon: "images/gridview-icon.png" libraryIcon: "images/gridview-icon.png"
version: "2.0" version: "2.0"
QmlSource { source: "source/gridviewv2.qml" } QmlSource { source: "source/gridview.qml" }
toolTip: qsTr("Organizes dynamic data sets in a grid.") toolTip: qsTr("Organizes dynamic data sets in a grid.")
} }
} }
@@ -218,7 +218,7 @@ MetaInfo {
libraryIcon: "images/listview-icon.png" libraryIcon: "images/listview-icon.png"
version: "2.0" version: "2.0"
QmlSource { source: "source/listviewv2.qml" } QmlSource { source: "source/listview.qml" }
toolTip: qsTr("Organizes dynamic data sets in a list.") toolTip: qsTr("Organizes dynamic data sets in a list.")
} }
} }
@@ -233,7 +233,7 @@ MetaInfo {
libraryIcon: "images/pathview-icon.png" libraryIcon: "images/pathview-icon.png"
version: "2.0" version: "2.0"
QmlSource { source: "source/pathviewv2.qml" } QmlSource { source: "source/pathview.qml" }
toolTip: qsTr("Organizes dynamic data sets along a path.") toolTip: qsTr("Organizes dynamic data sets along a path.")
} }
} }

View File

@@ -418,7 +418,7 @@ MetaInfo {
libraryIcon: "images/particle-system-24px.png" libraryIcon: "images/particle-system-24px.png"
version: "6.2" version: "6.2"
requiredImport: "QtQuick3D.Particles3D" requiredImport: "QtQuick3D.Particles3D"
QmlSource { source: "./source/particleeffect_rainmist.qml" } QmlSource { source: "source/particleeffect_rainmist.qml" }
ExtraFile { source: "images/smoke2.png" } ExtraFile { source: "images/smoke2.png" }
} }
ItemLibraryEntry { ItemLibraryEntry {

View File

@@ -0,0 +1,12 @@
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQuick
Component {
Item {
id: componentRoot
width: 100
height: 100
}
}

View File

@@ -0,0 +1,11 @@
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQuick
import QtQuick3D
Component {
Node {
id: componentRoot
}
}

View File

@@ -0,0 +1,61 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQuick
GridView {
width: 140
height: 140
cellWidth: 70
cellHeight: 70
model: ListModel {
ListElement {
name: "Grey"
colorCode: "grey"
}
ListElement {
name: "Red"
colorCode: "red"
}
ListElement {
name: "Blue"
colorCode: "blue"
}
ListElement {
name: "Green"
colorCode: "green"
}
}
delegate: Item {
height: 50
x: 5
Column {
spacing: 5
Rectangle {
width: 40
height: 40
color: colorCode
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
x: 5
text: name
anchors.horizontalCenter: parent.horizontalCenter
font.bold: true
}
}
}
}

View File

@@ -0,0 +1,41 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQuick
ListView {
width: 160
height: 80
model: ListModel {
ListElement {
name: "Red"
colorCode: "red"
}
ListElement {
name: "Green"
colorCode: "green"
}
ListElement {
name: "Blue"
colorCode: "blue"
}
ListElement {
name: "White"
colorCode: "white"
}
}
delegate: Row {
spacing: 5
Rectangle {
width: 100
height: 20
color: colorCode
}
Text {
width: 100
text: name
}
}
}

View File

@@ -0,0 +1,50 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQuick
PathView {
width: 250
height: 130
path: Path {
startX: 120
startY: 100
PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 }
PathQuad { x: 120; y: 100; controlX: -20; controlY: 75 }
}
model: ListModel {
ListElement {
name: "Grey"
colorCode: "grey"
}
ListElement {
name: "Red"
colorCode: "red"
}
ListElement {
name: "Blue"
colorCode: "blue"
}
ListElement {
name: "Green"
colorCode: "green"
}
}
delegate: Column {
spacing: 5
Rectangle {
width: 40
height: 40
color: colorCode
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
x: 5
text: name
anchors.horizontalCenter: parent.horizontalCenter
font.bold: true
}
}
}