2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2013-01-14 17:44:23 +01:00
|
|
|
|
|
|
|
|
import QtQuick 2.0
|
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
|
width: 640
|
|
|
|
|
height: 480
|
|
|
|
|
|
|
|
|
|
GridView {
|
|
|
|
|
id: grid_view1
|
|
|
|
|
x: 35
|
|
|
|
|
y: 28
|
|
|
|
|
width: 140
|
|
|
|
|
height: 140
|
|
|
|
|
cellHeight: 70
|
|
|
|
|
delegate: Item {
|
|
|
|
|
x: 5
|
|
|
|
|
height: 50
|
|
|
|
|
Column {
|
|
|
|
|
Rectangle {
|
|
|
|
|
width: 40
|
|
|
|
|
height: 40
|
|
|
|
|
color: colorCode
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Text {
|
|
|
|
|
x: 5
|
|
|
|
|
text: name
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
font.bold: true
|
|
|
|
|
}
|
|
|
|
|
spacing: 5
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
model: ListModel {
|
|
|
|
|
ListElement {
|
|
|
|
|
name: "Grey"
|
|
|
|
|
colorCode: "grey"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ListElement {
|
|
|
|
|
name: "Red"
|
|
|
|
|
colorCode: "red"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ListElement {
|
|
|
|
|
name: "Blue"
|
|
|
|
|
colorCode: "blue"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ListElement {
|
|
|
|
|
name: "Green"
|
|
|
|
|
colorCode: "green"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
cellWidth: 70
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ListView {
|
|
|
|
|
id: list_view1
|
|
|
|
|
x: 248
|
|
|
|
|
y: 28
|
|
|
|
|
width: 110
|
|
|
|
|
height: 160
|
|
|
|
|
delegate: Item {
|
|
|
|
|
x: 5
|
|
|
|
|
height: 40
|
|
|
|
|
Row {
|
|
|
|
|
id: row1
|
|
|
|
|
Rectangle {
|
|
|
|
|
width: 40
|
|
|
|
|
height: 40
|
|
|
|
|
color: colorCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Text {
|
|
|
|
|
text: name
|
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
|
font.bold: true
|
|
|
|
|
}
|
|
|
|
|
spacing: 10
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
model: ListModel {
|
|
|
|
|
ListElement {
|
|
|
|
|
name: "Grey"
|
|
|
|
|
colorCode: "grey"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ListElement {
|
|
|
|
|
name: "Red"
|
|
|
|
|
colorCode: "red"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ListElement {
|
|
|
|
|
name: "Blue"
|
|
|
|
|
colorCode: "blue"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ListElement {
|
|
|
|
|
name: "Green"
|
|
|
|
|
colorCode: "green"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PathView {
|
|
|
|
|
id: path_view1
|
|
|
|
|
x: 35
|
|
|
|
|
y: 239
|
|
|
|
|
width: 250
|
|
|
|
|
height: 130
|
|
|
|
|
delegate: Component {
|
|
|
|
|
Column {
|
|
|
|
|
Rectangle {
|
|
|
|
|
width: 40
|
|
|
|
|
height: 40
|
|
|
|
|
color: colorCode
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Text {
|
|
|
|
|
x: 5
|
|
|
|
|
text: name
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
font.bold: true
|
|
|
|
|
}
|
|
|
|
|
spacing: 5
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
model: ListModel {
|
|
|
|
|
ListElement {
|
|
|
|
|
name: "Grey"
|
|
|
|
|
colorCode: "grey"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ListElement {
|
|
|
|
|
name: "Red"
|
|
|
|
|
colorCode: "red"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ListElement {
|
|
|
|
|
name: "Blue"
|
|
|
|
|
colorCode: "blue"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ListElement {
|
|
|
|
|
name: "Green"
|
|
|
|
|
colorCode: "green"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
path: Path {
|
|
|
|
|
PathQuad {
|
|
|
|
|
x: 120
|
|
|
|
|
y: 25
|
|
|
|
|
controlY: 75
|
|
|
|
|
controlX: 260
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PathQuad {
|
|
|
|
|
x: 120
|
|
|
|
|
y: 100
|
|
|
|
|
controlY: 75
|
|
|
|
|
controlX: -20
|
|
|
|
|
}
|
|
|
|
|
startY: 100
|
|
|
|
|
startX: 120
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|